(
f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>,
options?: {
readonly bufferSize?: number | undefined
readonly strategy?: "sliding" | "dropping" | "suspend" | undefined
}
)
| 523 | * @since 4.0.0 |
| 524 | */ |
| 525 | export const callbackArray = <A, E = never, R = never>( |
| 526 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 527 | options?: { |
| 528 | readonly bufferSize?: number | undefined |
| 529 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
| 530 | } |
| 531 | ): Channel<Arr.NonEmptyReadonlyArray<A>, E, void, unknown, unknown, unknown, Exclude<R, Scope.Scope>> => |
| 532 | fromTransform((_, scope) => Effect.map(asyncQueue(scope, f, options), Queue.takeAll)) |
| 533 | |
| 534 | /** |
| 535 | * Creates a `Channel` that lazily evaluates to another channel. |
nothing calls this directly
no test coverage detected