leonoel / missionary

A functional effect and streaming system for Clojure/Script
Eclipse Public License 2.0
636 stars 26 forks source link

example (m/? (m/sleep 1000 42)) does not work in clojurescript #2

Closed fonghou closed 5 years ago

fonghou commented 5 years ago

An exception is thrown from here

Tried to set a breakpoint on this line in chrome debugger, but the breakpoint was never hit. It seems closed over fiber variable never gets a not nil value.

leonoel commented 5 years ago

This is intended. ? is parking when used inside a sp block and blocking elsewhere. In clojurescript, blocking is not supported so you can't use ? outside of a sp block. I'm currently working on a documentation rewrite, I'll make sure this point is made more explicit.

leonoel commented 5 years ago

Tutorial Hello task hopefully makes this point more explicit.