Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Under the Hood" chapter doesn't have any block_on #198

Open
beauxq opened this issue Aug 25, 2023 · 0 comments
Open

"Under the Hood" chapter doesn't have any block_on #198

beauxq opened this issue Aug 25, 2023 · 0 comments

Comments

@beauxq
Copy link

beauxq commented Aug 25, 2023

After reading chapter 1, I was wondering what block_on was doing under the hood.

  • What happens if I call block_on in 2 different threads?
  • Do they both go to the same event loop?
  • Or does it make a new event loop every time I call block_on?
  • What happens if I call block_on inside an async function?

Then I saw the title of chapter 2 and I thought "That's perfect - just what I wanted!"

Except it wasn't what I wanted. Chapter 2 didn't have any block_on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant