We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f362f08 commit 39deb1eCopy full SHA for 39deb1e
curio/traps.py
@@ -69,12 +69,13 @@ async def _future_wait(future, event=None):
69
'''
70
return await _kernel_trap('trap_future_wait', future, event)
71
72
-async def _sleep(clock):
+async def _sleep(seconds):
73
74
- Sleep until the monotonic clock reaches the specified clock value.
+ Sleep for the specified floating-point number of seconds.
75
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.
77
- return await _kernel_trap('trap_sleep', clock)
78
+ return await _kernel_trap('trap_sleep', seconds)
79
80
async def _spawn(coro):
81
0 commit comments