CoroutineExecutor class mixin

Constructors

CoroutineExecutor()

Properties

countCoroutines int
The count of running coroutines
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCoroutine<T>(CoroutineAsync<T> coroutine) → void
Adds a coroutine to the executor without starting it Does nothing if the coroutine is already running
isCoroutineRunning(CoroutineAsync coroutine) bool
Returns whether a coroutine is currently running
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runAllCoroutines() Future<void>
Continues all coroutines in this executor
runCoroutine<T>(CoroutineAsync<T> coroutine) Future<T?>
Starts or continues a coroutine It starts or continues its execution depending on its current state If the coroutine is paused, it resumes execution from the last yield point
stopAllCoroutines() → void
Stops all coroutines in this executor
stopCoroutine(CoroutineAsync coroutine) → void
Stops a coroutine
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited