|
|
|
|
|
by ryanbrush
4655 days ago
|
|
Understanding that core.async is new and evolving, but is there a reference or an idiomatic way to work with blocking operations, beyond the general advice of separate threads as an exercise for the reader? EDIT: I bring this up because this seems like a common misstep for users of core.async, and a simple pattern for blocking IO might help people avoid it. core.async really looks awesome...if we can create simple patterns for working with blocking operations, it would be a compelling model for a lot of use cases. (Also, hats off to the core.async developers; it seems like the reward for creating something great is just demand for more. ;) |
|
The next step is deciding on how to expose the asynchronicity. I chose to accept / return channels rather than callbacks, because... well... wrapping your sync code in a callback-based async API just to glue them together with go blocks and channels seemed backward to me. :)
I think this "next level up" from the foundation of core.async has potential for some really great solutions and I'm dying to see what Tim and others will come up with...