Skip to content

What happens if all tokio tasks fall into sleep? #5940

Answered by Darksonn
wqshr12345 asked this question in Q&A
Discussion options

You must be logged in to vote

The tokio_test::task::spawn utility doesn't do the same thing as tokio::spawn. It's intended for the use-case where you want to control when the task should be polled from the test. Since you never do that, it doesn't get polled.

Replies: 1 comment 2 replies

Comment options

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

@Darksonn
Comment options

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