Context.Reference<ReadonlySet<ErrorReporter>>Context reference that holds the set of active error reporters for the current fiber. Defaults to an empty set (no reporting).
When to use
Use when you need to read or replace the current set of error reporters directly.
references
Source effect/ErrorReporter.ts:1691 lines
export const const CurrentErrorReporters: Context.Reference<
ReadonlySet<ErrorReporter>
>
const CurrentErrorReporters: {
key: string;
Service: {
forEach: (callbackfn: (value: ErrorReporter, value2: ErrorReporter, set: ReadonlySet<ErrorReporter>) => void, thisArg?: any) => void;
has: (value: ErrorReporter) => boolean;
size: number;
entries: () => SetIterator<[ErrorReporter, ErrorReporter]>;
keys: () => SetIterator<ErrorReporter>;
values: () => SetIterator<ErrorReporter>;
union: (other: ReadonlySetLike<U>) => Set<ErrorReporter | U>;
intersection: (other: ReadonlySetLike<U>) => Set<ErrorReporter & U>;
difference: (other: ReadonlySetLike<U>) => Set<ErrorReporter>;
symmetricDifference: (other: ReadonlySetLike<U>) => Set<ErrorReporter | U>;
isSubsetOf: (other: ReadonlySetLike<unknown>) => boolean;
isSupersetOf: (other: ReadonlySetLike<unknown>) => boolean;
isDisjointFrom: (other: ReadonlySetLike<unknown>) => boolean;
};
defaultValue: () => Shape;
of: (this: void, self: ReadonlySet<ErrorReporter>) => ReadonlySet<ErrorReporter>;
context: (self: ReadonlySet<ErrorReporter>) => Context.Context<never>;
use: (f: (service: ReadonlySet<ErrorReporter>) => Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
useSync: (f: (service: ReadonlySet<ErrorReporter>) => A) => Effect.Effect<A, never, never>;
Identifier: Identifier;
stack: string | undefined;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
Context reference that holds the set of active error reporters for the
current fiber. Defaults to an empty set (no reporting).
When to use
Use when you need to read or replace the current set of error reporters
directly.
CurrentErrorReporters: import ContextContext.type Context.Reference = /*unresolved*/ anyReference<interface ReadonlySet<T>ReadonlySet<ErrorReporter>> = import referencesreferences.const CurrentErrorReporters: Context.Reference<
ReadonlySet<ErrorReporter>
>
const CurrentErrorReporters: {
key: string;
Service: {
forEach: (callbackfn: (value: ErrorReporter, value2: ErrorReporter, set: ReadonlySet<ErrorReporter>) => void, thisArg?: any) => void;
has: (value: ErrorReporter) => boolean;
size: number;
entries: () => SetIterator<[ErrorReporter, ErrorReporter]>;
keys: () => SetIterator<ErrorReporter>;
values: () => SetIterator<ErrorReporter>;
union: (other: ReadonlySetLike<U>) => Set<ErrorReporter | U>;
intersection: (other: ReadonlySetLike<U>) => Set<ErrorReporter & U>;
difference: (other: ReadonlySetLike<U>) => Set<ErrorReporter>;
symmetricDifference: (other: ReadonlySetLike<U>) => Set<ErrorReporter | U>;
isSubsetOf: (other: ReadonlySetLike<unknown>) => boolean;
isSupersetOf: (other: ReadonlySetLike<unknown>) => boolean;
isDisjointFrom: (other: ReadonlySetLike<unknown>) => boolean;
};
defaultValue: () => Shape;
of: (this: void, self: ReadonlySet<ErrorReporter>) => ReadonlySet<ErrorReporter>;
context: (self: ReadonlySet<ErrorReporter>) => Context.Context<never>;
use: (f: (service: ReadonlySet<ErrorReporter>) => Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
useSync: (f: (service: ReadonlySet<ErrorReporter>) => A) => Effect.Effect<A, never, never>;
Identifier: Identifier;
stack: string | undefined;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
CurrentErrorReportersReferenced by 1 symbols