circuitpython/shared-bindings/storage
Scott Shawcroft d2860b58b0
Check background pending before sleep
There is a race between when we run background tasks and when we
sleep. If an interrupt happens between the two, then we may delay
executing the background task. On some ports we checked this for
TinyUSB already. On iMX RT, we didn't which caused USB issues.
This PR makes it more generic for all background tasks including
USB.

Fixes #5086 and maybe others.
2021-08-19 12:18:13 -07:00
..
__init__.c Check background pending before sleep 2021-08-19 12:18:13 -07:00
__init__.h update Python API according to review comments 2021-05-03 22:29:02 -04:00