Function
asyncQueue
(
scope: Scope.Scope,
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
}
)
Source from the content-addressed store, hash-verified
| 445 | * |
| 446 | * **Example** (Reading the default chunk size) |
| 447 | * |
| 448 | * ```ts import.meta.vitest |
| 449 | * import { Channel } from "effect" |
| 450 | * |
| 451 | * Channel.DefaultChunkSize // => 4096 |
| 452 | * ``` |
| 453 | * |
| 454 | * @category constants |
| 455 | * @since 4.0.0 |
| 456 | */ |
| 457 | export const DefaultChunkSize: number = 4096 |
| 458 | |
| 459 | const asyncQueue = <A, E = never, R = never>( |
| 460 | scope: Scope.Scope, |
| 461 | f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 462 | options?: { |
| 463 | readonly bufferSize?: number | undefined |
| 464 | readonly strategy?: "sliding" | "dropping" | "suspend" | undefined |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…