diff --git a/extmod/asyncio/core.py b/extmod/asyncio/core.py index 8aad234514b0c..95e518c841ba1 100644 --- a/extmod/asyncio/core.py +++ b/extmod/asyncio/core.py @@ -49,6 +49,9 @@ def __next__(self): self.exc.__traceback__ = None raise self.exc + def send(self, x): + self.__next__() + # Pause task execution for the given time (integer in milliseconds, uPy extension) # Use a SingletonGenerator to do it without allocating on the heap