Skip to main content
Corvus Connection

Timeout

Concurrency
Control
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
in
Exec
exec
multiplexed
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed

Outputs

Name
Kind
Type
Flags
body
Exec
exec
None
onTimeout
Exec
exec
None
completed
Exec
exec
None
  • Name
    body
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    onTimeout
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    completed
    Kind
    Exec
    Type
    exec
    Flags
    None

Parameters

Name
Type
Required
Default
Choices
timeoutMs
System.Int32
no
5000
None
  • Name
    timeoutMs
    Type
    System.Int32
    Required
    no
    Default
    5000
    Choices
    None

Lowers to C#

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

Used in