@polkadot/api
Version:
Promise and RxJS wrappers around the Polkadot JS RPC
13 lines (12 loc) • 628 B
TypeScript
import type { Callback } from '@polkadot/types/types';
import type { UnsubscribePromise } from '../types/index.js';
export type CombinatorCallback<T extends unknown[]> = Callback<T>;
export type CombinatorFunction = (cb: Callback<any>) => UnsubscribePromise;
export declare class Combinator<T extends unknown[] = unknown[]> {
#private;
constructor(fns: (CombinatorFunction | [CombinatorFunction, ...unknown[]])[], callback: CombinatorCallback<T>);
protected _allHasFired(): boolean;
protected _createCallback(index: number): (value: any) => void;
protected _triggerUpdate(): void;
unsubscribe(): void;
}