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

doc: fix typos in event loop doc to aid readability #6916

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/topics/the-event-loop-timers-and-nexttick.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ ways depending on when they are called.
* `setTimeout()` schedules a script to be run
after a minimum threshold in ms has elapsed.

The order in which they are execute varies depending on the context in
which they are called. If both are called in the main module then you
are bound to how fast your process go, which is impacted by other
programs running on your machine.
The order in which they are executed varies depending on the context in
which they are called. If both are called in the main module, then you
are bound by how fast your process goes (which is impacted by other
programs running on your machine).
Copy link
Member

Choose a reason for hiding this comment

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

Would prefer to rework this a bit to avoid the use of you and your. Perhaps...

The order in which the timers are executed will vary depending on the context
in which they are called. If both are called from within the main module, then timing
will be bound by the performance of the process (which can be impacted by other
applications running on the machine).

Or something along those lines.


For example, if we run the following script which is not within a I/O
cycle (i.e. the main module), the order in which the two functions are
Expand Down