-
Notifications
You must be signed in to change notification settings - Fork 249
Open
Description
The docstring for curio.traps._sleep
reads:
Sleep until the monotonic clock reaches the specified clock value.
If clock is 0, forces the current task to yield to the next task (if any).
The first line is inaccurate. _sleep
does not sleep until the supplied value is less than or equal to "now"; it sleeps for specified value interpreted as a number of seconds, according to the kernel source here:
Line 541 in 1484546
set_timeout(clock + time_monotonic(), 'sleep') |
Metadata
Metadata
Assignees
Labels
No labels