What is the right trait bound for an async closure? E.g. for async move |x| x * x How can I be generic over this? I've tried: where F: FnMut(I) -> Box<dyn Future<Output = T, E>> But that doesn't do what I expect; even if I add Box::new() in places.
(yes yes, I'm probably doing things I shouldn't. But it'll be really useful if I can get this to work!!)
-
-
Ohhhh, awesome!!
End of conversation
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.