We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d40a4e8 + e8c2d38 commit 2ffc31fCopy full SHA for 2ffc31f
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