1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-07 20:12:27 +00:00

Overhaul of poll loop, redo ev/select.

This commit is contained in:
Calvin Rose
2020-10-11 09:07:11 -05:00
parent ea45165db8
commit cb4903fa86
5 changed files with 169 additions and 131 deletions

View File

@@ -10,8 +10,8 @@
(defn reader [name]
(forever
(def c (ev/select ;channels))
(print "reader " name " got " (ev/take c) " from " c)))
(def [_ c x] (ev/select ;channels))
(print "reader " name " got " x " from " c)))
# Readers
(each letter [:a :b :c :d :e :f :g]