Re:Introducing Spider 0.1
by robotresearcher on Friday November 28, 2014 @02:35PM
(#8671909)
Function calls can block the thread too. Parent was questioning the need for the programmer to have a different syntactical interface to channels.
That in turn means you need to compile it to something like the CSP-transformed JS you use for async/await. It's not just a little bit of sugar for a method call. The compiler needs to be aware of it so it can transform the code appropriately.
However, from looking at the code, it looks like spider currently only does this for channel reads. Writes are always non-blocking, which limits their usefulness.