How do poll an async function in a function that returns a Future but itself is not async?

funny thing is that the documentation doesnt mention anything about Pin

No, Pin comes from the fact that if F implements the Future trait, then Box<F> doesn't necessarily also implement that trait: F must also implement Unpin for Box<F> to implement Future. The unpin issue is a property of boxes, not a property of futures, and so you'd have to look at the doc for Box to find out about this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.