Computer class

Class, that provides compute like API for concurrent calculations

Constructors

Computer.create()
factory
Computer.shared()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Returns true if Computer turned on and false otherwise
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compute<P, R>(Function fn, {P? param}) Future<R>
Executes function fn with passed param. Takes only top-level functions and static methods. P is param type, R is function return type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
turnOff() Future<void>
Turn off Computer
turnOn({int workersCount = 2, bool verbose = false}) Future<void>
Turn on Computer, workersCount should not be less than 1, default is 2 verbose is false by default, enabling it leads to logging of every operation

Operators

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