(
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
}
)
| 495 | * @since 4.0.0 |
| 496 | */ |
| 497 | export const callback = <A, E = never, R = never>( |
| 498 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 499 | options?: { |
| 500 | readonly bufferSize?: number | undefined |
| 501 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
| 502 | } |
| 503 | ): Channel<A, E, void, unknown, unknown, unknown, Exclude<R, Scope.Scope>> => |
| 504 | fromTransform((_, scope) => Effect.map(asyncQueue(scope, f, options), Queue.take)) |
| 505 | |
| 506 | /** |
| 507 | * Creates a `Channel` that interacts with a callback function using a queue, emitting arrays. |
nothing calls this directly
no test coverage detected