(
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
}
)
| 692 | * @since 4.0.0 |
| 693 | */ |
| 694 | export const callback = <A, E = never, R = never>( |
| 695 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 696 | options?: { |
| 697 | readonly bufferSize?: number | undefined |
| 698 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
| 699 | } |
| 700 | ): Stream<A, E, Exclude<R, Scope.Scope>> => fromChannel(Channel.callbackArray(f, options)) |
| 701 | |
| 702 | /** |
| 703 | * Creates an empty stream. |