AsyncRwLock import { AsyncRwLock } from "destack:async"; Asynchronous reader-writer lock. export class AsyncRwLock { value: T; constructor(value: T); read(): Task>; tryRead(): AsyncRwLockReadGuard | undefined; write(): Task>; tryWrite(): AsyncRwLockWriteGuard | undefined; getExclusive(): &exclusive T; intoInner(): T; } language/library/src/async/rwlock.ds:8:46 Members value: T The protected value. constructor(value: T) Create an async reader-writer lock protecting value. read(): Task> Lock this value for shared reading. tryRead(): AsyncRwLockReadGuard | undefined Try to lock this value for shared reading. write(): Task> Lock this value for exclusive writing. tryWrite(): AsyncRwLockWriteGuard | undefined Try to lock this value for exclusive writing. getExclusive(): &exclusive T Borrow the protected value without locking. intoInner(): T Consume this lock and return the protected value.