News for hackers. Stuff that matters.
Re:Go Concurrency Patterns ported to Clojure by masklinn on Monday September 16, 2013 @11:30AM (#6393728)
> In my understanding, in golang

The distinction is that it's not go, `go` blocks are macros doing a bunch of transformations. `<!` and `<!!` have the same purpose (get a value from a channel) but not the same context, `<!` can only be called inside a (go) block and will be transformed into a parking of the thread (yielding to the runner), whereas `<!!` works at a lower level and will block their whole thread.

> The scheduler will run other goros on the threadpool until the blocking call finishes.

`<!!` and the coroutine scheduler are not aware of one another, calling `<!!` from within a coroutine will block the scheduler. `<!!` (and `>!!`) exist specifically to be called from outside the scheduler (from outside a `go` block)

Likewise, `Thread/sleep` is not aware of the coroutine scheduler (it would have to be monkey-patched), calling it will also block the scheduler itself. core.async provides `timeout` for the purpose of parking a coroutine.

Re:Go Concurrency Patterns ported to Clojure by jbert on Monday September 16, 2013 @12:16PM (#6393984)
Thanks. I misunderstood the original comment to refer to golang code. The edited comment is clearer.