API REFERENCE
IcicleStreamSource
IcicleStreamSource 타입 선언과 관련 타입입니다. 선택 필드는 ?로 표시됩니다.
타입 선언
export interface IcicleStreamSource {
readonly length: number;
readonly capacity: number;
readonly dropped: number;
push(node: IcicleNodeInput): void;
pushBatch(nodes: ReadonlyArray<IcicleNodeInput>): void;
shift(count: number): void;
replace(nodes: ReadonlyArray<IcicleNodeInput>): void;
snapshot(): IcicleNodeInput[];
subscribe(listener: (event: IcicleStreamEvent) => void): () => void;
}