Skip to main content
Corvus Connection

Timeout

Concurrency
flow.timeoutRuns the body with a time budget. If the body doesn't finish within 'timeoutMs', it is cancelled and flow takes 'onTimeout'; otherwise flow resumes at 'completed'.Bounds a sub-flow with a timeout + cancellation, with an on-timeout branch.

Inputs

Name
Kind
Type
Flags
inExecexecmultiplexed

Outputs

Name
Kind
Type
Flags
bodyExecexecNone
onTimeoutExecexecNone
completedExecexecNone

Parameters

Name
Type
Required
Default
Choices
timeoutMsSystem.Int32no5000None

Lowers to C#

using var cts = CreateLinkedTokenSource(ctx.Cancellation); cts.CancelAfter(timeoutMs); try { /* body */ } catch (OperationCanceledException) { /* onTimeout */ }