Closed mairas closed 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.
SemaphoreValue
ObservableValue
wait
SemaphoreValue
is a new class that holds values like anObservableValue
but which uses a semaphore to flag value updates. If one task is writing to theSemaphoreValue
, another class canwait
on it and resume execution once a new value has been set.