(
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
}
)
| 772 | * @since 4.0.0 |
| 773 | */ |
| 774 | export const callback = <A, E = never, R = never>( |
| 775 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 776 | options?: { |
| 777 | readonly bufferSize?: number | undefined |
| 778 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
| 779 | } |
| 780 | ): Stream<A, E, Exclude<R, Scope.Scope>> => fromChannel(Channel.callbackArray(f, options)) |
| 781 | |
| 782 | /** |
| 783 | * Creates an empty stream. |