Code widget
21 jul 2026a few seconds ago
Unassigned

Preview of the code context widget

Migration snippet
export const timeoutMs = 5000;

export function withTimeout<T>(promise: Promise<T>): Promise<T> {
  return Promise.race([
    promise,
    new Promise<T>((_, reject) =>
      setTimeout(() => reject(new Error("Timeout")), timeoutMs)
    ),
  ]);
}

Your decision

Choose an action and submit to continue the workflow.

This is a preview. Click the button to see what would be sent to your webhook.