Where is the oneshot channel and select marco in smol ecosystem?

I'm trying to migrate my existing codebase to the smol ecosystem. futures-lite doesn't contain select and select_biased macros like futures, and smol's top-level crate doesn't have oneshot channel. Checked out the standalone oneshot crate and find relatively few downloads.

As nobody answered here yet, I will give it a try.

I wonder if you could just use the tokio::sync::oneshot channel, even if you use the smol runtime?

As far as I understand (but I may be wrong), the channels aren't tied to the runtime they work on. But maybe using Tokio would be a too heavy dependency? Maybe you could just extract what you need?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.