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
While simplifying the repro case I narrowed it down a bit: If the inner load function doesn't get passed an Arc containing the Switchyard, it doesn't get stuck.
While testing some async code shuffling handles between threads I came across a case where
.await
inside.spawn()
doesn't return.I created a repro case here: https://github.com/Systemcluster/switchyard/blob/trunk/tests/repro.rs
Running with
cargo test -- --nocapture
makes it apparent that one of the futures gets stuck here: https://github.com/Systemcluster/switchyard/blob/trunk/tests/repro.rs#L25While simplifying the repro case I narrowed it down a bit: If the inner
load
function doesn't get passed anArc
containing theSwitchyard
, it doesn't get stuck.Changing these two lines
to
makes it work as expected without getting stuck.
The text was updated successfully, but these errors were encountered: