Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / awaitExternal
Function: awaitExternal()
ts
function awaitExternal<TResume>(name): TResume;Defined in: packages/core/src/channels/durable.ts:127
Suspend on a named durable promise. The thread stays suspended (and survives restarts) until an external caller resolves it via workflow.resolveAwakeable(threadId, name, value); that value is returned here.
Type Parameters
| Type Parameter | Default type |
|---|---|
TResume | unknown |
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
TResume