Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Drain

func Drain() -> ()

Declaring type: TaskQueue
Module: System.Concurrency.Tasks
Assembly: System.Runtime.dll
Source file: Tasks.rvn

Runs queued callbacks until the queue is empty.

Return value

()

Remarks

Callbacks posted by a running callback join the next batch. Recursive pumping produces a runtime fault. Runtime faults stop execution; this is not an exception recovery boundary.