TCICIsolate class

Isolate/compute 相关统一封装。

  • 统一入口:避免业务散落在 controller / utils 中到处 spawn/compute。
  • 统一 entry-point:保证被后台 isolate 调用的函数具备 vm entry-point 标记。

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

runCompute<Q, R>(ComputeCallback<Q, R> callback, Q message, {String? debugLabel}) Future<R>
spawnMxLoggerSendPort({required String loggerKey, String debugName = 'mxlogger-bg'}) Future<SendPort?>
mxlogger:后台写入的 isolate SendPort。
spawnSendPortHandshakeIsolate({required void entryPoint(List), required List args, String? debugName}) Future<SendPort?>
spawn 一个 isolate,并通过握手拿到它的 SendPort