Concur class abstract
Manages the creation of concurrent workers and communication between them.
Constructors
- Concur()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getChannel(
String workerName) → Stream< MessageEvent> -
Opens a communication channel receiving data from the named worker.
The named worker must exist in the domain of workers passed to
Concur.start()
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String workerName, dynamic message, [List< Object> ? transfer]) → void - Sends a message to the named worker. The message can consist of any data you could put into a JSON object, plus MessagePort (although if you're using this library, you may want to let it worry about port sharing).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isWorkerThread → bool
-
True if the current thread is a Web Worker with no DOM access
final
Static Methods
-
start(
Map< String, WorkLauncher> workers, String mainWorkerName, {bool useWorkers = true, String launchUrl = 'main.dart.js'}) → void - Starts the provided set of named workers and passes each one an instance of Concur that is capable of communicating with the other workers. The named main worker is the only worker guaranteed to have access to the DOM.