Re:Getting Started with Tokio
by Arnavion on Saturday December 24, 2016 @03:54PM
(#13251581)
In general, yes. But here I don't see why it's not possible to use FutureResult instead of BoxFuture.
[ Parent
| on HN ]
Yep, you're right, a plain FutureResult works fine in this case. I was aware of the general rule about boxing futures, but didn't realize it was unnecessary in this case. Thanks for pointing it out! I'll update the post.