Skip to content

Conversation

@mscdex
Copy link
Contributor

No description provided.

@mscdexmscdex added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label Oct 12, 2021
@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 12, 2021
@nodejs-github-bot

This comment has been minimized.

@mscdexmscdexforce-pushed the timers-refresh-args branch from 7ddac5c to 10d58e7CompareOctober 12, 2021 23:10
@nodejs-github-bot

This comment has been minimized.

@mscdexmscdexforce-pushed the timers-refresh-args branch from 10d58e7 to 18ddfd5CompareOctober 12, 2021 23:31
@nodejs-github-bot

This comment has been minimized.

@mscdexmscdexforce-pushed the timers-refresh-args branch from 18ddfd5 to b959c50CompareOctober 12, 2021 23:41
@nodejs-github-bot

This comment has been minimized.

@targos
Copy link
Member

@nodejs/timers

@mscdexmscdexforce-pushed the timers-refresh-args branch from b959c50 to 29f5a66CompareOctober 13, 2021 10:17
@nodejs-github-bot
Copy link
Collaborator

@jasnell
Copy link
Member

@mscdex ... can I ask you to provide a short change description and rationale?

benjamingr
benjamingr previously requested changes Oct 21, 2021
Copy link
Member

@benjamingrbenjamingr left a comment

Choose a reason for hiding this comment

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

I'd like to know why/for what this is useful before this is merged?

Like - I know there is probably a reasonable use case for this but I don't know what it is

@mscdex
Copy link
ContributorAuthor

@benjamingr In my particular case I have a queue of waiting tasks, each with varying start timestamps. With the changes in this PR I can reuse a single timer object for the entire queue and simply do something like timer.refresh(Date.now() - nextTask.startTime).

@mscdexmscdexforce-pushed the timers-refresh-args branch 2 times, most recently from a4510d4 to efff092CompareApril 26, 2022 19:46
@benjamingrbenjamingr dismissed their stale reviewApril 26, 2022 23:14

meh, ok I guess

@mscdexmscdexforce-pushed the timers-refresh-args branch from efff092 to 1ae03a2CompareApril 27, 2022 13:48
@nodejs-github-bot
Copy link
Collaborator

@targostargos added the semver-minor PRs that contain new features and should be released in the next minor version. label Apr 27, 2022
@mscdexmscdexforce-pushed the timers-refresh-args branch from 1ae03a2 to 4ed6584CompareApril 27, 2022 14:27
@nodejs-github-bot
Copy link
Collaborator

@mscdex
Copy link
ContributorAuthor

@jasnell I'm not sure what you're asking for. Were you just interested in hearing a use case like @benjamingr ?

@aduh95
Copy link
Contributor

This needs a rebase

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs that need a full CI run.semver-minorPRs that contain new features and should be released in the next minor version.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@mscdex@nodejs-github-bot@targos@jasnell@aduh95@benjamingr@juanarbol