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
When calling .send().await on a ReactorScope in an infinite loop, nothing is actually sent.
Steps to Reproduce
Spawn a web worker running the following loop.
#[reactor]pubasyncfnWorker(mutscope:ReactorScope<(),u64>){for i in0.. {
scope.send(i).await.unwrap();// Nothing is sent unless we uncomment the following line// gloo::timers::future::sleep(Duration::from_millis(100)).await;}}
Log the output to the console from the main thread.
Describe the Bug
When calling
.send().await
on aReactorScope
in an infinite loop, nothing is actually sent.Steps to Reproduce
Spawn a web worker running the following loop.
Log the output to the console from the main thread.
Expected Behavior
To see output on the console.
Actual Behavior
There is no output on the console. After uncommenting the sleep statement in the reactor function, the expected output appears.
Additional Context
Tested with
gloo-worker
v0.5.0 inside Firefox dev edition 128.0b3.The text was updated successfully, but these errors were encountered: