mirror of
https://github.com/janet-lang/janet
synced 2025-10-23 03:37:40 +00:00
Have separate encode and decode dicts for threads
This is more correct and mirrors the way marshal -> unmarshal works.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
(defn make-worker
|
||||
[name]
|
||||
(-> (thread/new make-image-dict) (thread/send worker-main) (thread/send name)))
|
||||
(-> (thread/new) (thread/send worker-main) (thread/send name)))
|
||||
|
||||
(def bob (make-worker "bob"))
|
||||
(os/sleep 0.5)
|
||||
|
Reference in New Issue
Block a user