CodeMeltedAsync class
Implements the Async IO API collecting ways of properly doing asynchronous programming with Flutter within a web environment.
Constructors
- CodeMeltedAsync()
-
Sets up the internal instance for this object.
factory
Properties
- hardwareConcurrency → int
-
Identifies the number of processors to facilitate dedicated workers.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sleep(
{required int delay}) → Future< void> - Will sleep an asynchronous task for the specified delay in milliseconds.
-
task(
{required CAsyncTask task, dynamic data, int delay = 0}) → Future - Will process a one off asynchronous task on the main flutter thread.
-
timer(
{required CAsyncTask task, required int interval}) → Timer - Kicks off a timer to schedule tasks on the thread for which it is created calling the task on the interval specified in milliseconds.
-
toString(
) → String -
A string representation of this object.
inherited
-
worker(
{required CAsyncWorkerListener onDataReceived, required String workerUrl}) → CAsyncWorker - Creates the CAsyncWorker dedicated FIFO worker for background work to the client. This worker will be written in JavaScript.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited