-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I'm working on a project where I use async_stream for interfacing with an optional crate. I wish to propose a stub for platforms that don't have support for this crate.
The following naive attempt does not work (the compiler tells me I'd rather use unit type as return value), likely because the lack of a yield does not allow the macro to derive an iterm type:
pub fn stream(&mut self) -> impl Stream<Item = io::Result<NetEvent>> + '_ {
try_stream! {
}
}
How can I achieve that ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels