transferum
    Preparing search index...

    Interface UniversalDuplexInterface<TInput, TOutput>

    Universal duplex interface — combines all input and output capabilities.

    interface UniversalDuplexInterface<TInput, TOutput> {
        active: boolean;
        isAsyncPollingProxy: boolean;
        isAsyncPullable: boolean;
        isAsyncPushable: boolean;
        isAsyncTriggerable: boolean;
        isDuplex: boolean;
        isGate: boolean;
        isInput: boolean;
        isOutput: boolean;
        isPollingProxy: boolean;
        isPollingSource: boolean;
        isPullable: boolean;
        isPushable: boolean;
        isSubscribable: boolean;
        isTriggerable: boolean;
        activate(): void;
        asyncPull(): Promise<TOutput | undefined>;
        asyncPush(data: TInput): Promise<void>;
        asyncTrigger(): Promise<void>;
        clearAsyncFetcher(): void;
        clearFetcher(): void;
        deactivate(): void;
        destroy(): void;
        onStateChange(handler: DataHandler<GateInterface>): SubscriberInterface;
        pull(): TOutput | undefined;
        push(data: TInput): void;
        setAsyncFetcher(fetcher: AsyncDataFetcher<TInput>): void;
        setFetcher(fetcher: DataFetcher<TInput>): void;
        subscribe(handler: DataHandler<TOutput>): SubscriberInterface;
        toggle(): boolean;
        trigger(): void;
    }

    Type Parameters

    • TInput
    • TOutput

    Hierarchy (View Summary)

    Implemented by

    Index
    active: boolean
    isAsyncPollingProxy: boolean
    isAsyncPullable: boolean
    isAsyncPushable: boolean
    isAsyncTriggerable: boolean
    isDuplex: boolean
    isGate: boolean
    isInput: boolean
    isOutput: boolean
    isPollingProxy: boolean
    isPollingSource: boolean
    isPullable: boolean
    isPushable: boolean
    isSubscribable: boolean
    isTriggerable: boolean