UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

20 lines 636 B
import { HamokMessage } from './HamokMessage'; export type PendingResponseConfig = { sourcePeerId: string; requestId: string; }; export declare class PendingResponse { readonly config: PendingResponseConfig; private _messages; private _endSeq; private _result?; constructor(config: PendingResponseConfig); get sourcePeerId(): string; get requestId(): string; get storageId(): string | undefined; get isReady(): boolean; get result(): HamokMessage | undefined; accept(message: HamokMessage): void; get [Symbol.toStringTag](): string; } //# sourceMappingURL=PendingResponse.d.ts.map