-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Making the k6/experimental/timers module part of the k6 core #3297
Comments
mstoykov
added
the
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
label
Aug 23, 2023
Feature request for having |
5 tasks
mstoykov
added
js-compat
and removed
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
labels
Jan 12, 2024
mstoykov
changed the title
Making the k6/experimental/xk6-timers module part of the k6 core
Making the k6/experimental/timers module part of the k6 core
Jan 25, 2024
mstoykov
added a commit
that referenced
this issue
Feb 9, 2024
mstoykov
added a commit
that referenced
this issue
Feb 9, 2024
5 tasks
mstoykov
added a commit
that referenced
this issue
Feb 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xk6-timers implement the very old setTimeout and co.
The module has a single open issue grafana/xk6-timers#3 and is used fairly commonly.
The functionality it provides is also needed to delay execution in ways similar to
sleep
but without blocking the event loop.Blockers:
setTimeout does not fire in order xk6-timers#3 - the issue should be fixed.k6/timers
? Do we want to actually just have it globally, given how it is usually used in JS. That will add more intercompatibility with other JS engines.Alternatives:
While setTimeout and co are very old and known, they are not very promise/async/await friendly as they predate them.
The things that keeps poping out is
delay
both fromThe provided APU has the benefit of doing
instead of
But likely we should still have
setTimeout
and co.The text was updated successfully, but these errors were encountered: