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

Swap std::thread::sleep for tokio::time::sleep #196

Merged
merged 2 commits into from
Oct 6, 2022
Merged

Conversation

paulbellamy
Copy link
Contributor

What

Replace std::thread::sleep with tokio::time::sleep

Why

Because afaict we are using tokio for async execution, not threading. So std::thread::sleep might act strange. Shouldn't change any behaviour now.

Known limitations

[TODO or N/A]

@leighmcculloch leighmcculloch enabled auto-merge (squash) October 6, 2022 21:07
@leighmcculloch leighmcculloch merged commit 740f921 into main Oct 6, 2022
@leighmcculloch leighmcculloch deleted the tokio branch October 6, 2022 21:20
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

Successfully merging this pull request may close these issues.

2 participants