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
use futures::select_biased;use futures_async_stream::try_stream;#[try_stream(ok=(), error=())]pubasyncfnevents(&mutself){select_biased!{
_ = futures::future::ready(()) => {}}}
gives
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> src/rotary.rs:29:13
|
25 | #[try_stream(ok=(), error=())]
| ---------------------------------------------- this is not `async`
...
29 | / select_biased! {
30 | | _ = futures::future::ready(()) => {}
31 | | }
| |_____________^ only allowed inside `async` functions and blocks
|
= note: this error originates in the macro `$crate::select_biased_internal` which comes from the expansion of the macro `select_biased` (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
gives
The text was updated successfully, but these errors were encountered: