SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
157 stars 82 forks source link

Implement a task synchronization consumable #754

Closed mairas closed 1 month ago

mairas commented 1 month ago

SemaphoreValue is a new class that holds values like an ObservableValue but which uses a semaphore to flag value updates. If one task is writing to the SemaphoreValue, another class can wait on it and resume execution once a new value has been set.