Condvar import { Condvar } from "destack:sync"; Condition variable paired with a mutex. export class Condvar { constructor(); wait(guard: MutexGuard): MutexGuard; waitWhile(guard: MutexGuard, condition: (&'a readonly T) => boolean): MutexGuard; notifyOne(): void; notifyAll(): void; } language/library/src/sync/condvar.ds:6:31 Members constructor() Create a condition variable. wait(guard: MutexGuard): MutexGuard Wait and reacquire the mutex before returning. waitWhile(guard: MutexGuard, condition: (&'a readonly T) => boolean): MutexGuard Wait while condition returns true. notifyOne(): void Wake one waiting worker. notifyAll(): void Wake all waiting workers.