Skip to content

What am I doing wrong? - Async Program hanging at 128 Futures #4514

Answered by taiki-e
emogames asked this question in Q&A
Discussion options

You must be logged in to vote

Perhaps this block_on is causing the problem

  async fn main() {
-     block_on(as_main());
+     as_main().await;
  }

Replies: 1 comment 2 replies

Comment options

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

@Darksonn
Comment options

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