bsp-network
Version:
SDK for writing node.js applications to interact with bsp network. This package encapsulates the APIs to connect to a bsp network, submit transactions and perform queries against the ledger.
14 lines (13 loc) • 365 B
TypeScript
/**
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
export declare class AsyncNotifier<T> {
private readonly readCallback;
private readonly notifyCallback;
private running;
constructor(readCallback: () => T | undefined, notifyCallback: (event: T) => Promise<unknown>);
notify(): void;
private run;
}