Skip to content

Port server to async#43

Open
willcrichton wants to merge 1 commit into
01-async-await-afrom
01-async-await-b
Open

Port server to async#43
willcrichton wants to merge 1 commit into
01-async-await-afrom
01-async-await-b

Conversation

@willcrichton
Copy link
Copy Markdown
Contributor

Reference solution for porting the server crate to use the async feature. Key pieces:

  • Add async keyword to each handler and the main function
  • Add #[tokio::main] annotation to the async main
  • Add tokio as a dependency of server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant