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
System::with_tokio_rt currently takes a Fn, which is quite restricting, since it does not allow moving ownership of captured variables into the closure (at least not in a clean way). This is especially useful if the runtime had to be initialized before the system and was stored in a global variable or passed as an argument.
The code in with_tokio_rt only calls the closure once, and since Fn: FnMut and FnMut: FnOnce, this should not be a breaking change.
The text was updated successfully, but these errors were encountered:
System::with_tokio_rt
currently takes aFn
, which is quite restricting, since it does not allow moving ownership of captured variables into the closure (at least not in a clean way). This is especially useful if the runtime had to be initialized before the system and was stored in a global variable or passed as an argument.The code in
with_tokio_rt
only calls the closure once, and sinceFn: FnMut
andFnMut: FnOnce
, this should not be a breaking change.The text was updated successfully, but these errors were encountered: