(self: Latch): booleanChecks whether the latch is currently open or closed.
When to use
Use to check the state of the latch without suspending or changing its state.
getters
Source effect/Latch.ts:3941 lines
export const const isOpen: (self: Latch) => booleanChecks whether the latch is currently open or closed.
When to use
Use to check the state of the latch without suspending or changing its state.
isOpen = (self: Latch(parameter) self: {
open: Effect.Effect<boolean>;
openUnsafe: (this: Latch) => boolean;
release: Effect.Effect<boolean>;
await: Effect.Effect<void>;
close: Effect.Effect<boolean>;
closeUnsafe: (this: Latch) => boolean;
whenOpen: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
isOpen: (this: Latch) => boolean;
}
self: Latch): boolean => self: Latch(parameter) self: {
open: Effect.Effect<boolean>;
openUnsafe: (this: Latch) => boolean;
release: Effect.Effect<boolean>;
await: Effect.Effect<void>;
close: Effect.Effect<boolean>;
closeUnsafe: (this: Latch) => boolean;
whenOpen: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
isOpen: (this: Latch) => boolean;
}
self.Latch.isOpen(this: Latch): booleanChecks whether the latch is currently open or closed.
When to use
Use to check the state of the latch without suspending or changing its state.
isOpen()