JanetDocsPlaygroundI'm feeling luckyGitHub sign in
# create a channel without buffer, default is 0 (def channel (ev/chan)) (ev/spawn (ev/sleep 5) (ev/give channel "Hard work is done!")) (print "do anything") (for i 0 5 (print i) (ev/sleep 0.5)) (print (ev/take channel)) # blocks here, until there is a result in the channel (print "done")