UNPKG

@digitalasset/daml-ledger

Version:
19 lines (18 loc) 662 B
import { ClientUnaryCall } from '@grpc/grpc-js'; export declare class ClientCancellableCall { static readonly rejected: ClientCancellableCall; private readonly wrapped; private constructor(); static accept(wrapped: ClientUnaryCall): ClientCancellableCall; /** * Cancel the ongoing call. Results in the call ending with a CANCELLED status, * unless it has already ended with some other status. */ cancel(): void; /** * Get the endpoint this call/stream is connected to. * * @returns {string} The URI of the endpoint or an empty string if the call never reached the server */ getPeer(): string; }