(self: TxReentrantLock)
| 361 | * @since 2.0.0 |
| 362 | */ |
| 363 | export const readLock = (self: TxReentrantLock): Effect.Effect<number, never, Scope.Scope> => |
| 364 | Effect.withFiber((fiber) => |
| 365 | Effect.acquireRelease( |
| 366 | acquireRead(self), |
| 367 | () => releaseReadFor(self, fiber.id) |
| 368 | ) |
| 369 | ) |
| 370 | |
| 371 | /** |
| 372 | * Acquires a write lock for the duration of the scope. |
nothing calls this directly
no test coverage detected