AIDK API Reference / aidk-kernel / waitForChannelResponse
Function: waitForChannelResponse() ​
ts
function waitForChannelResponse(
channelName: string,
requestId: string,
timeoutMs?: number): Promise<ChannelEvent>;Defined in: packages/kernel/src/channel-helpers.ts:59
Wait for a response on a channel using the current context.
Parameters ​
| Parameter | Type |
|---|---|
channelName | string |
requestId | string |
timeoutMs? | number |
Returns ​
Promise<ChannelEvent>
Throws ​
Error if channels are not available in context