(self: TxReentrantLock)
| 398 | * @since 2.0.0 |
| 399 | */ |
| 400 | export const writeLock = (self: TxReentrantLock): Effect.Effect<number, never, Scope.Scope> => |
| 401 | Effect.withFiber((fiber) => |
| 402 | Effect.acquireRelease( |
| 403 | acquireWrite(self), |
| 404 | () => releaseWriteFor(self, fiber.id) |
| 405 | ) |
| 406 | ) |
| 407 | |
| 408 | /** |
| 409 | * Runs the provided effect while holding a read lock. The lock is automatically |
nothing calls this directly
no test coverage detected