(
register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, E, R | Scope.Scope>,
options?: {
readonly bufferSize: "unbounded"
} | {
readonly bufferSize?: number | undefined
readonly strategy?: "dropping" | "sliding" | undefined
} | undefined
)
| 613 | |
| 614 | /** @internal */ |
| 615 | export const asyncPush = <A, E = never, R = never>( |
| 616 | register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, E, R | Scope.Scope>, |
| 617 | options?: { |
| 618 | readonly bufferSize: "unbounded" |
| 619 | } | { |
| 620 | readonly bufferSize?: number | undefined |
| 621 | readonly strategy?: "dropping" | "sliding" | undefined |
| 622 | } | undefined |
| 623 | ): Stream.Stream<A, E, Exclude<R, Scope.Scope>> => |
| 624 | Effect.acquireRelease( |
| 625 | mailboxFromBufferOptionsPush<A, E>(options), |
| 626 | (mailbox) => mailbox.shutdown |
| 627 | ).pipe( |
| 628 | Effect.tap((mailbox) => register(emit.makePush(mailbox))), |
| 629 | Effect.map(mailboxToStream), |
| 630 | unwrapScoped |
| 631 | ) |
| 632 | |
| 633 | /** @internal */ |
| 634 | export const asyncScoped = <A, E = never, R = never>( |
nothing calls this directly
no test coverage detected