Skip to content

Commit 39deb1e

Browse files
zbentleymwerezak
authored andcommitted
Fix curio#370: update docstring of traps._sleep
1 parent f362f08 commit 39deb1e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

curio/traps.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ async def _future_wait(future, event=None):
6969
'''
7070
return await _kernel_trap('trap_future_wait', future, event)
7171

72-
async def _sleep(clock):
72+
async def _sleep(seconds):
7373
'''
74-
Sleep until the monotonic clock reaches the specified clock value.
74+
Sleep for the specified floating-point number of seconds.
7575
If clock is 0, forces the current task to yield to the next task (if any).
76+
Returns the current value of the monotonic clock.
7677
'''
77-
return await _kernel_trap('trap_sleep', clock)
78+
return await _kernel_trap('trap_sleep', seconds)
7879

7980
async def _spawn(coro):
8081
'''

0 commit comments

Comments
 (0)