-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add Deno.delay as promise version of setTimeout #4052
Labels
good first issue
Good for newcomers
Comments
Only slightly better than Is it okay to encourage something non-portable for a trivial high-level convenience? I don't know if this is a good idea, at least with what I understand to be Deno's current set of philosophies. |
This is in std: Lines 110 to 117 in a0d3b4e
|
@nayeemrmn, yea you make a good point... |
The up to date version: deno add @std/async import { delay } from "@std/async/delay";
await delay(100); // waits for 100 milliseconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: