Get the latest tech news

Informed poll


poll# pw_async2: Cooperative async tasks for embedded The informed poll programming model is the core design philosophy behind pw_async2. Informed poll provides an alternative to callback-based asynchronous programming that is highly efficient, requires no dynamic memory allocation, and simplifies state management for complex concurrent operations.

Informed poll provides an alternative to callback-based asynchronous programming that is highly efficient, requires no dynamic memory allocation, and simplifies state management for complex concurrent operations. It’s not yet a common paradigm in embedded C++ codebases, though, so we strongly encourage all pw_async2 users to read this page and internalize the informed poll worldview before attempting to use pw_async2! This mechanism prevents the Dispatcher from having to wastefully poll tasks that aren’t ready, allowing it to sleep and save power when no work can be done.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Informed Poll

Informed Poll