GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — doc: general improvements to timers.md by jasnell · Pull Request #6937 · nodejs/node Conversation
Member
Checklist
Affected core subsystem(s)doc (timers) Description of changeGeneral improvements to timers.md copy @nodejs/documentation
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. execute is "one-off", period would rather indicate a sequence of time, no? Anyhow this sounds a little bulky.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure this works?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not yet. Will be double checking the links before landing.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
|
Should be blocked by #6206 or that should be incorporated, but I'd like to preserve @bengl's contribution if possible. It should have already landed I think but I haven't gotten around to it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bengl ... looking at #6206, how about we combine efforts into a single PR? I can port your edits on top of mine (keeping it as a separate commit with your name attached). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jasnell Yeah sure. You want me to PR against your branch or you got it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Either way works!
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jasnell alright I made a PR against your branch with roughly the same changes (it was easier to do a completely commit than to rebase). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Awesome, thank you. Squashed my commits and pulled yours in. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bengl ... made a few additional edits on top .. PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Has no effect unless the Timeout was previously unrefed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also this does not restore overhead lost by calling unref() -- once you unref it, we'd have to do a linear walk to re-insert it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Neither of these comments seem to be necessary to add to the user documentation in this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated. PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If there are no further comments, I will land on Monday |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not incorrect, but I think this is still poorly worded.
When called, the
Timeoutwill not keep the event loop open. When Node.js would exit due to inactivity, this timer will longer be considered as activity, and the program may stop before it calls it's callback.
Maybe that would be better? I agree the wording is hard without having a strong idea of the event loop and handle refedness.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that's any better. Rather than hold this up while we get the wording perfect on this, I'd recommend landing and iterating on it separately in subsequent PRs
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, perhaps, but it should probably at least indicate it has an effect on when the process exits. Perhaps the original wording is the best compromise for now then?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM minus nits (particularly the last one) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
ping @jasnell |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Will be back on this after I'm back from vacation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated one final time to address nit |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this link is incorrect?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM, might want to make sure the link is right though. The other bits can always be addressed in a new PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated to address the final round of nits |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Seems good, let's land and unblock #6956 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Overall improvements to timers.md documentation, Includes squashed commit from @bengl: doc: add timer classes The timers returned by `setTimeout` and friends are actually instances of `Timeout` and `Immediate`. Documenting them as such, so that the `ref` and `unref` methods can be identified as methods on `Timeout` objects. Sparked by discussion in nodejs#5792
Overall improvements to timers.md documentation, Includes squashed commit from @bengl: doc: add timer classes The timers returned by `setTimeout` and friends are actually instances of `Timeout` and `Immediate`. Documenting them as such, so that the `ref` and `unref` methods can be identified as methods on `Timeout` objects. Sparked by discussion in #5792 PR-URL: #6937 Reviewed-By: Robert Jefe Lindstaedt <[email protected]> Reviewed-By: Bryan English <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
|
Landed in 86e07b7 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Overall improvements to timers.md documentation, Includes squashed commit from @bengl: doc: add timer classes The timers returned by `setTimeout` and friends are actually instances of `Timeout` and `Immediate`. Documenting them as such, so that the `ref` and `unref` methods can be identified as methods on `Timeout` objects. Sparked by discussion in #5792 PR-URL: #6937 Reviewed-By: Robert Jefe Lindstaedt <[email protected]> Reviewed-By: Bryan English <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.