Merge pull request #4263 from proski/two-seconds

Typo: "2" should be "2 seconds"
This commit is contained in:
Chris Krycho
2025-03-13 10:16:02 -06:00
committed by GitHub

View File

@@ -271,10 +271,10 @@ again, so the runtime pauses it again until another message arrives.
The code now successfully sends and receives all of the messages. Unfortunately,
there are still a couple of problems. For one thing, the messages do not arrive
at half-second intervals. They arrive all at once, 2 (2,000 milliseconds) after
we start the program. For another, this program also never exits! Instead, it
waits forever for new messages. You will need to shut it down using <span
class="keystroke">ctrl-c</span>.
at half-second intervals. They arrive all at once, 2 seconds (2,000
milliseconds) after we start the program. For another, this program never exits!
Instead, it waits forever for new messages. You will need to shut it down using
<span class="keystroke">ctrl-c</span>.
Lets start by examining why the messages come in all at once after the full
delay, rather than coming in with delays between each one. Within a given async