[Feature] Add function to check for active run loop #1499
Labels
enhancement
New feature or request
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
topic: multitasking
Issues releated to parallel threads, tasks, coroutines, etc.
Is your feature request related to a problem? Please describe.
Most of the async-compatible methods we have implemented in C change their behavior depending on whether the run loop is active.
It would be nice to expose this flag so that imported Python functions in block projects can do this too, so they always work as expected. See for example #1498.
It would be nice to ship this in the upcoming firmware so that the firmware can be stable for while and we just add add-on functionality in user code only.
The text was updated successfully, but these errors were encountered: