ThreadPool class

Constructors

ThreadPool()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
loadBalancer Future<LoadBalancer>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute<R, P>({required FutureOr<R> doWork(P argument), dynamic call(R response)?, required P argument}) → void
执行多线程微任务 doWork 耗时任务 call 耗时任务执行结果回调 argument 任务执行传入参数
executeOr<R, P>({required FutureOr<R> doWork(P argument), required P argument}) Future<R>
执行多线程同步返回微任务 doWork 耗时任务 argument 任务执行传入参数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ThreadPool
no setter