WkConfig class

线程配置

Constructors

WkConfig({int timeout = 10 * 1000, required Map<String, dynamic> serviceConfig, required Future<bool> serviceHandler(WkSignal signal, Map<String, dynamic> config), required Future messageHandler(Map<String, dynamic> config, String taskType, dynamic taskData), dynamic sendPort})

Properties

hashCode int
The hash code for this object.
no setterinherited
messageHandler Future Function(Map<String, dynamic> config, String taskType, dynamic taskData)
外部消息处理器(顶级函数 或 静态函数)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendPort ↔ dynamic
数据通讯端口
getter/setter pair
serviceConfig Map<String, dynamic>
服务配置信息
final
serviceHandler Future<bool> Function(WkSignal signal, Map<String, dynamic> config)
内部服务处理器(顶级函数 或 静态函数)
final
timeout int
调用任务函数runTask后,未得到返回结果的超时时间(毫秒)
final

Methods

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