2 ms·
An interrupt handler could schedule an asynchronous task just fine. In a lot of situations that would be a very good way to handle things. You shouldn't await
by Dylan16807 2y ago
An interrupt handler could schedule an asynchronous task just fine. In a lot of situations that would be a very good way to handle things.
You shouldn't await in an interrupt handler, but there's a lot of things you shouldn't do in an interrupt handler. A rule like that doesn't mean you need a noasync mode. (And if you really wanted to use await there, you could make it work with priorities or with a separate task queue.)