UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

22 lines 763 B
import "../../Operator/index.js"; import * as Chunk from "../../Collections/Immutable/Chunk/index.js"; import type { MutableArray } from "../../Support/Mutable/index.js"; import { Hub, Subscription } from "./Hub.js"; export declare class BoundedHubPow2<A> extends Hub<A> { array: MutableArray<A>; mask: number; publisherIndex: number; subscribers: MutableArray<number>; subscriberCount: number; subscribersIndex: number; readonly capacity: number; constructor(requestedCapacity: number); isEmpty(): boolean; isFull(): boolean; publish(a: A): boolean; publishAll(as: Iterable<A>): Chunk.Chunk<A>; size(): number; slide(): void; subscribe(): Subscription<A>; } //# sourceMappingURL=BoundedHubPow2.d.ts.map