You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into the async story in objc2 today (madsmtm/objc2#279), gonna open a few issues (and later on probably PRs) in this repo because I believe you've taken the right approach in splitting this out from blockr to be generally applicable, and this'll be a useful crate for me to recommend to objc2async users in the future.
Feel free to say so if you don't intend for this crate to be used by the wider ecosystem / gain that kind of "publicity" (with the effort that entails), then I'll go a different approach.
(Btw, thanks for making the license in your objr repos more permissive).
The text was updated successfully, but these errors were encountered:
I was unaware of oneshot as well. Taking a glance at it I think the key differences are:
continue has first-class support for running code on cancel. I think oneshot needs a wrapper for this? Personally I think going batteries-included on this is the way to go.
oneshot has first-class support for blocking reads. continue would need a wrapper to do this. Personally I think going batteries-sold-separately on this is the way to go
There are some different choices which lead to differing performance. For example oneshot hand-rolls its atomic-waker like capability, which ought to be a bit better. But in doing so it over-clones wakers, which ought to be a bit worse.
Hey Drew!
I've been looking into the
async
story inobjc2
today (madsmtm/objc2#279), gonna open a few issues (and later on probably PRs) in this repo because I believe you've taken the right approach in splitting this out fromblockr
to be generally applicable, and this'll be a useful crate for me to recommend toobjc2
async
users in the future.Feel free to say so if you don't intend for this crate to be used by the wider ecosystem / gain that kind of "publicity" (with the effort that entails), then I'll go a different approach.
(Btw, thanks for making the license in your
objr
repos more permissive).The text was updated successfully, but these errors were encountered: