IsolatePool class

Constructors

IsolatePool({required int poolSize, required IsolateTaskRegistry taskRegistry, String debugName = 'Pool'})

Properties

debugName String
final
hashCode int
The hash code for this object.
no setterinherited
initialized bool
getter/setter pair
poolSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskRegistry IsolateTaskRegistry
final
whenReady Future<void>
no setter
workers List<PoolWorker>
final

Methods

dispose() → void
getStatus() Map<String, dynamic>
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runTask<T>(String taskId, IsolateTask task, {Duration timeout = const Duration(seconds: 30), void onProgress(TaskProgress)?, required CancellationToken token}) Future<T>
toString() String
A string representation of this object.
inherited

Operators

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