The type of the protected value.
Readonly[toThe well-known symbol Symbol.toStringTag used by Object.prototype.toString().
The protected value (read-write access).
Downgrades this write guard to a read guard atomically.
The write lock is converted to a read lock without releasing it, allowing other waiting readers to proceed concurrently. Pending writers continue to wait until all readers (including this one) release their locks.
After calling downgrade(), this guard is invalidated and must not
be used — accessing value or calling unlock() will throw.
Equivalent to Rust's RwLockWriteGuard::downgrade (stabilized in
Rust 1.92.0).
A new RwLockReadGuard<T> providing shared read access.
A guard that provides exclusive write access to the RwLock-protected value.
Only one write guard can exist at a time, and no read guards can be acquired while a write guard is held.
Since
1.8.0