Asynchronous I/O that doesn’t get in your way, written in D
Struct Monitor
Synchronization primitive to ensure accessing a piece of data is always
protected by a locked mutex.
structMonitor(T, M)
;
This struct ensures through its API that the encapsulated data cannot be
accessed without the associated mutex being locked. It should always be
preferred over manually locking a mutex and casting away shared.