pw_async: Run aborted Tasks with cancelled Status Add a pw::Status parameter to TaskFunction and adopt the "hybrid" cancellation strategy: specify that when a Dispatcher knows that a Task will not be running as scheduled, the Dispatcher will still call its TaskFunction with a Status parameter of PW_STATUS_CANCELLED to facilitate the reclamation of Task resources by clients. Change-Id: I00dbd4c1e52f745b82ee47e057fd6f8746c6b850 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/133154 Reviewed-by: Ben Lawson <benlawson@google.com> Commit-Queue: Ali Saeed <saeedali@google.com> Reviewed-by: Keir Mierle <keir@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.