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
Since spawn never looks at the results of the future, the return value ought to be completely devoid of any useful information to reduce the risk that the user might unintentionally forget about the result.
The current choice of Future<Item=(), Error=()> still has one bit of information: it’s possible to distinguish between Ok(()) and Err(()) results. It really ought to return Future<Item=(), Error=Void>, which means the Future is guaranteed to succeed.
It’s not a big problem by any means, just kind of quirky in my perspective.