Atomic
A coroutine-safe wrapper around a mutable value, protected by a Mutex.
Provides suspending functions for reading and writing the value with mutual exclusion, as well as a non-locking value property for quick reads (volatile visibility only).
Parameters
initValue
the initial value
Type Parameters
T
the type of the wrapped value