Skip to content

async.TypeAlias.StatefulRpcOptions

github-actions[bot] edited this page Jun 8, 2026 · 2 revisions

@zenstone/ts-utils / async / StatefulRpcOptions

Type Alias: StatefulRpcOptions<Result, Params>

StatefulRpcOptions<Result, Params> = object

Defined in: src/async/StatefulRpc.ts:21

构造选项

Type Parameters

Result

Result

Params

Params

Properties

events?

optional events?: EventsCallbacks<StatefulRpcEvents<Result, Params>>

Defined in: src/async/StatefulRpc.ts:27

事件回调


idPrefix?

optional idPrefix?: string

Defined in: src/async/StatefulRpc.ts:23

实例 id 前缀,默认 "stateful-rpc"


timeout?

optional timeout?: number

Defined in: src/async/StatefulRpc.ts:25

默认超时毫秒数,默认 30000。必须 > 0,否则回退到 30000

Clone this wiki locally