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

JSPI: Add a chance for sleep() to not actually sleep #7244

Merged
merged 11 commits into from
Jan 28, 2025

Conversation

kripken
Copy link
Member

@kripken kripken commented Jan 27, 2025

Rather than return a promise, it returns an integer immediately.

@brendandahl I believe this implements the idea you mentioned recently?

@kripken kripken requested a review from brendandahl January 27, 2025 23:20
Copy link
Collaborator

@brendandahl brendandahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's what I had in mind. Looks good!

@kripken kripken merged commit 7353da7 into WebAssembly:main Jan 28, 2025
14 checks passed
@kripken kripken deleted the nosleep branch January 28, 2025 21:50
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