1
0
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:
Calvin Rose
2019-12-01 21:53:39 -06:00
parent 5b1e59b535
commit 212479188a
4 changed files with 46 additions and 24 deletions

View File

@@ -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)