We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d40a4e8 commit e8c2d38Copy full SHA for e8c2d38
asyncio/core.py
@@ -65,7 +65,7 @@ def __next__(self):
65
# Pause task execution for the given time (integer in milliseconds, uPy extension)
66
# Use a SingletonGenerator to do it without allocating on the heap
67
def sleep_ms(t, sgen=SingletonGenerator()):
68
- assert sgen.state is None
+ assert sgen.state is None, "Check for a missing `await` in your code"
69
sgen.state = ticks_add(ticks(), max(0, t))
70
return sgen
71
0 commit comments