mirror of
https://github.com/janet-lang/janet
synced 2025-02-03 02:39:09 +00:00
Deprecate the thread module.
This commit is contained in:
parent
81b5904188
commit
87b8dffe23
@ -2,6 +2,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## 1.17.0 - Unreleased
|
## 1.17.0 - Unreleased
|
||||||
|
- Deprecate the `thread` library. Use threaded channels and ev instead.
|
||||||
|
- Channels can now be marshalled.
|
||||||
|
- Add the ability to close channels with `ev/chan-close` (or `:close`).
|
||||||
|
- Add threaded channels with `ev/thread-chan`.
|
||||||
- Add `JANET_FN` and `JANET_REG` macros to more easily define C functions that export their source mapping information.
|
- Add `JANET_FN` and `JANET_REG` macros to more easily define C functions that export their source mapping information.
|
||||||
- Add `janet_interpreter_interupt` and `janet_loop1_interrupt` to interrupt the interpreter while running.
|
- Add `janet_interpreter_interupt` and `janet_loop1_interrupt` to interrupt the interpreter while running.
|
||||||
- Add `table/clear`
|
- Add `table/clear`
|
||||||
|
@ -3651,6 +3651,12 @@
|
|||||||
(put into k (x k))))
|
(put into k (x k))))
|
||||||
into)
|
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
|
# Modify root-env to remove private symbols and
|
||||||
# flatten nested tables.
|
# flatten nested tables.
|
||||||
(loop [[k v] :in (pairs root-env)
|
(loop [[k v] :in (pairs root-env)
|
||||||
|
Loading…
Reference in New Issue
Block a user