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

wasm: use thread::sleep on non-wasi wasm too #4963

Merged
merged 2 commits into from Sep 1, 2022
Merged

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Sep 1, 2022

There's no reason to limit this cfg to wasi. Other types of wasm then wasi may also support thread::sleep.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-time Module: tokio/time T-wasm Topic: Web Assembly labels Sep 1, 2022
tokio/src/park/thread.rs Outdated Show resolved Hide resolved
Co-authored-by: Taiki Endo <te316e89@gmail.com>
@Darksonn Darksonn merged commit d3cae06 into master Sep 1, 2022
@Darksonn Darksonn deleted the alice/sleep-on-wasm branch September 1, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-time Module: tokio/time T-wasm Topic: Web Assembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants