(self: TReentrantLock.TReentrantLock)
| 332 | |
| 333 | /** @internal */ |
| 334 | export const writeLock = (self: TReentrantLock.TReentrantLock): Effect.Effect<number, never, Scope.Scope> => |
| 335 | Effect.acquireRelease( |
| 336 | core.commit(acquireWrite(self)), |
| 337 | () => core.commit(releaseWrite(self)) |
| 338 | ) |
| 339 | |
| 340 | /** @internal */ |
| 341 | export const writeLocked = (self: TReentrantLock.TReentrantLock): STM.STM<boolean> => |
no test coverage detected