Skip to main content
Corvus Connection

Thread Group

Concurrency
Control
flow.threadPoolOffloads the body to the thread pool (Task.Run) for CPU-bound or blocking work, then resumes at 'completed'. A 'return' inside the body ends the offloaded work only.Run the body on a thread-pool thread, then continue.

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
completed
Exec
exec
None
  • Name
    body
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    completed
    Kind
    Exec
    Type
    exec
    Flags
    None

Lowers to C#

await Task.Run(async () => { /* body */ }); /* → completed */