mirror of
https://github.com/janet-lang/janet
synced 2025-10-30 15:13:03 +00:00
Deprecate the thread module.
This commit is contained in:
@@ -3651,6 +3651,12 @@
|
||||
(put into k (x k))))
|
||||
into)
|
||||
|
||||
# Deprecate thread library
|
||||
(loop [[k v] :in (pairs root-env)
|
||||
:when (symbol? k)
|
||||
:when (string/has-prefix? "thread/" k)]
|
||||
(put v :deprecated true))
|
||||
|
||||
# Modify root-env to remove private symbols and
|
||||
# flatten nested tables.
|
||||
(loop [[k v] :in (pairs root-env)
|
||||
|
||||
Reference in New Issue
Block a user