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
Would it make sense to have a non-thread safe version for thread-local executors like unsend?
This could be more performant (both because it could use LocalWaker once stable, and because it could use Cell/Rc instead of atomics) and the implementation would probably be simpler.
The text was updated successfully, but these errors were encountered:
notgull
added a commit
to notgull/unsend
that referenced
this issue
Oct 30, 2024
This is a missing addition to the Unsend ecosystem. This API adds a
oneshot channel with the classic send/recv model.
ref faern/oneshot#50
Signed-off-by: John Nunley <[email protected]>
I have not looked into the details of what would be required to implement this. But it sounds like this would be a completely different type and implementation, and with a quite niche use case? So with that in mind I would maybe argue that it belongs more in a separate crate.
Would it make sense to have a non-thread safe version for thread-local executors like
unsend
?This could be more performant (both because it could use
LocalWaker
once stable, and because it could useCell
/Rc
instead of atomics) and the implementation would probably be simpler.The text was updated successfully, but these errors were encountered: