(
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
}
)
| 575 | * @since 4.0.0 |
| 576 | */ |
| 577 | export const callbackArray = <A, E = never, R = never>( |
| 578 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 579 | options?: { |
| 580 | readonly bufferSize?: number | undefined |
| 581 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
| 582 | } |
| 583 | ): Channel<Arr.NonEmptyReadonlyArray<A>, E, void, unknown, unknown, unknown, Exclude<R, Scope.Scope>> => |
| 584 | fromTransform((_, scope) => Effect.map(asyncQueue(scope, f, options), Queue.takeAll)) |
| 585 | |
| 586 | /** |
| 587 | * Creates a `Channel` that lazily evaluates to another channel. |
nothing calls this directly
no test coverage detected