extmod/uasyncio: Add asyncio.wait_for_ms function.

Fixes issue #6107.
This commit is contained in:
Damien George
2020-06-05 21:26:27 +10:00
parent f3062b5cbd
commit a4c96fb3b0
5 changed files with 59 additions and 4 deletions

View File

@@ -74,6 +74,12 @@ Additional functions
This is a coroutine.
.. function:: wait_for_ms(awaitable, timeout)
Similar to `wait_for` but *timeout* is an integer in milliseconds.
This is a coroutine, and a MicroPython extension.
.. function:: gather(\*awaitables, return_exceptions=False)
Run all *awaitables* concurrently. Any *awaitables* that are not tasks are