Skip to content

Serve<Router, Router> is not a future #2505

Answered by davidpdrsn
leshow asked this question in Q&A
Discussion options

You must be logged in to vote

It’s because tokio::spawn takes a Future and not an IntoFuture. That trait didn’t exist when tokio went 1.0.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@jplatte
Comment options

@davidpdrsn
Comment options

@0xfrian
Comment options

Answer selected by leshow
Comment options

You must be logged in to vote
2 replies
@mladedav
Comment options

@mcluseau
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants