Computer class
Class, that provides compute
like API for concurrent calculations
Constructors
- Computer.create()
-
factory
-
factory
Properties
Methods
-
compute<
P, R> (Function fn, {P? param}) → Future< R> -
Executes function
fn
with passedparam
. Takes only top-level functions and static methods.P
isparam
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 2verbose
is false by default, enabling it leads to logging of every operation
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited