Skip to content

Cannot start a runtime from within a runtime #5274

Answered by Darksonn
Virgil-N asked this question in Q&A
Discussion options

You must be logged in to vote

Your code example is too small to show what the issue is. Did you write that code inside a #[tokio::main] function? If you're using block_on, then you shouldn't use #[tokio::main].

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Darksonn
Comment options

@Virgil-N
Comment options

@Darksonn
Comment options

@Virgil-N
Comment options

@ShyunnY
Comment options

Answer selected by Virgil-N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
C-bug Category: This is a bug. A-tokio Area: The main tokio crate
3 participants
Converted from issue

This discussion was converted from issue #5273 on December 06, 2022 09:04.