Skip to content

async.Interface.StatefulRpcTask

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

@zenstone/ts-utils / async / StatefulRpcTask

Interface: StatefulRpcTask<Params>

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

单次异步任务的描述信息,创建后冻结,不可修改。

Type Parameters

Params

Params

Properties

date

readonly date: Date

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

task 创建时间


key

readonly key: string

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

外部资源 key,同一个 key 可同时存在多个 task


params

readonly params: Params

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

调用 pending() 时传入的参数


taskId

readonly taskId: string

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

内部唯一 task id,格式:{instanceId}:{key}:{counter}

Clone this wiki locally