BridgeOperations interface

Module @runic-artifex/views/generated in @runic-artifex/views 0.23.0

interface BridgeOperations

The operation protocol, passed to connectView as operations by a generated client with operations. A View without operations does not bundle it.

Methods

start

start<TResult, TFailure = never>(scope: OperationScope, member: string, operation: string, input: unknown, codec: BridgeOperationCodec<TResult, TFailure>): Promise<BridgeOperationRuntimeHandle<TResult, TFailure>>;

Sends start and returns the admitted operation. input is the encoded input, or undefined for none.

recover

recover<TResult, TFailure = never>(scope: OperationScope, member: string, operation: string, codec: BridgeOperationCodec<TResult, TFailure>): Promise<BridgeOperationRuntimeHandle<TResult, TFailure>>;

Reads the status of a known operation id and returns its handle.