@@ -69,7 +69,7 @@ def __next__(self):
69
69
# Pause task execution for the given time (integer in milliseconds, uPy extension)
70
70
# Use a SingletonGenerator to do it without allocating on the heap
71
71
def sleep_ms (t , sgen = SingletonGenerator ()):
72
- """Sleep for `t` milliseconds.
72
+ """Sleep for *t* milliseconds.
73
73
74
74
This is a coroutine, and a MicroPython extension.
75
75
"""
@@ -81,7 +81,7 @@ def sleep_ms(t, sgen=SingletonGenerator()):
81
81
82
82
# Pause task execution for the given time (in seconds)
83
83
def sleep (t ):
84
- """Sleep for `t` seconds
84
+ """Sleep for *t* seconds
85
85
86
86
This is a coroutine.
87
87
"""
@@ -180,7 +180,7 @@ def create_task(coro):
180
180
181
181
# Keep scheduling tasks until there are none left to schedule
182
182
def run_until_complete (main_task = None ):
183
- """Run the given _main_task_ until it completes."""
183
+ """Run the given *main_task* until it completes."""
184
184
185
185
global cur_task
186
186
excs_all = (CancelledError , Exception ) # To prevent heap allocation in loop
@@ -283,7 +283,7 @@ def create_task(coro):
283
283
return create_task (coro )
284
284
285
285
def run_forever ():
286
- """Run the event loop until `stop()` is called."""
286
+ """Run the event loop until `Loop. stop()` is called."""
287
287
288
288
global _stop_task
289
289
_stop_task = Task (_stopper (), globals ())
0 commit comments