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

API Browser

Class

TaskQueue

class TaskQueue

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

Inheritance: Object → TaskQueue

A FIFO callback dispatcher within one guest invocation.

Remarks

Post schedules work. Drain runs callbacks in batches until empty, including callbacks posted during dispatch. Recursive pumping produces a runtime fault. This is not a thread pool or general-purpose event loop. Callback methods using Func<System.Void> are described in the callback guide.

Constructors

1 item
TaskQueue() Creates an empty explicit queue.

Properties

1 item
Static member: Default: TaskQueue Gets the lazily created queue for the current invocation.

Methods

7 items
Drain() -> () Runs queued callbacks until the queue is empty.
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Post(callback: () -> ()) -> () No summary available.
Run(callback: () -> ()) -> () No summary available.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString