Timeout
Concurrency
Control
Inputs
in | Exec | exec | multiplexed |
- Name
- in
- Kind
- Exec
- Type
- exec
- Flags
- multiplexed
Outputs
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
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
- Time-box a slow call (Pattern)
- Understand lowering: how a graph becomes code (Suggestion)
