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
I would rather write something like recv.on_receive(Box::new(|msg| do_something(msg))), which does all of the opaque conversions for me and adds a route to the router.
The text was updated successfully, but these errors were encountered:
When I have a
recv: IpcReceiver<T>
, writing code like this feels like boilerplate:I would rather write something like
recv.on_receive(Box::new(|msg| do_something(msg)))
, which does all of the opaque conversions for me and adds a route to the router.The text was updated successfully, but these errors were encountered: