mirror of
https://github.com/janet-lang/janet
synced 2025-10-07 20:12:27 +00:00
More work on windows event loop code.
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
|
||||
(defn writer [c]
|
||||
(for i 0 3
|
||||
(def item (string i ":" (hash c)))
|
||||
(ev/sleep 0.1)
|
||||
(print "writer giving item " i " to " c "...")
|
||||
(ev/give c (string "item " i)))
|
||||
(print "writer giving item " item " to " c "...")
|
||||
(ev/give c item))
|
||||
(print "Done!"))
|
||||
|
||||
(defn reader [name]
|
||||
|
Reference in New Issue
Block a user