nop library
Classes
-
Either<
L, R> - EventQueue
- 以队列的形式进行并等待异步任务
- FutureAny
-
IsolateRemoteServer<
T> - 创建一个Isolate
- KeyController
-
Left<
L, R> -
ListenerController<
T> - 默认实现
-
ListenerUnit<
T> - ListKey
-
LocalRemoteServer<
T> - 由entryPoint创建
- Log
- LogPretty
- Messager
-
None<
V> - NullRemoteServer
- 通常由其他RemoteServer代理时 为其提供一个句柄
-
Option<
V> - ReceiveHandle
- ReceiveMessage
- RemoteServer
- 远程服务/主机 提供kill接口
- RemoteServerBase
- 不是由当前的对象创建的RemoteServer 由用户管理生命周期
-
Right<
L, R> - Runner
-
SenderCompleter<
T> - 共享单一端口
-
SenderCompleterPrivateHandle<
T> -
SenderLayzeStream<
T> -
SenderStream<
T> -
SenderStreamController<
T> -
SenderStreamPrivateHandle<
T> - SendEvent
- SendHandle
- SendHandleName
- SendHandleOwner
- 隔离之间互通信所需要的SendHandles 调用:
- SendMessage
-
ServerConfigurations<
T> - ServerName
-
Some<
V> -
StreamLazyController<
T> - 默认实现
- StreamSubscriptionOwner
-
StreamSubscriptionUnit<
T> -
TaskEntry<
T> - TaskQueue
- TaskQueueGlobal
- TaskQueueImpl
Mixins
- IsolateAutoInitAndCloseMixin
-
ListenerControllerMixin<
T> - 监听控制器
- ListenMixin
- 端口创建/监听 初始化
- Resolve
- ResolveMultiRecievedMixin
-
子隔离 连接 其他隔离 的实现
比如: 加入
xxxxxxMessager
从getProtocols中获取协议 - SendCacheMixin
- Sender
- SenderOnReceivedMixin
- SenderPrivateHandle
- 独立端口
- SendEventFutureMixin
- 每个任务都有一个独立的端口
- SendEventMixin
- 在主隔离的所有消息接受操作都由add处理
- SendEventPortMixin
- 每个任务都有一个独立的端口
- SendEventPortStreamMixin
- 每个任务都有一个独立的端口
- SendEventResolve
- 不需要调用Resolve的onResumeListen 以SendEvent为主
- SendInitCloseMixin
- 提供安全的调用接口
- SendMultiServerMixin
- 管理多个 RemoteServer
-
StreamLazyMixin<
T> -
pause
的对象不会立即进入dirty
状态,会在一个新的数据被添加进来后, 设为dirty
状态,只有在dirty
状态下,resume
才有可能调用_childResume
, 获取新数据 - TaskQueueMixin
-
TransferType<
D> -
TransferTypeMapData<
T> -
TransferTypeMapDataList<
E, D, T>
Extensions
-
EventsPush
on FutureOr<
T> Function() -
FutureOrFuture
on FutureOr<
T> -
FutureOrIterable
on FutureOr<
Iterable< T> > -
FutureOrMap
on FutureOr<
Map< K, V> > -
FutureOrNull
on FutureOr<
T> ? - LogListPrettyExt on Iterable
- LogMapPrettyExt on Map
-
MapOnOption
on FutureOr<
Option< T> ?> - 将Option?转化为Option
- MaxMin on T
-
OptionFutureExt
on FutureOr<
T?> - 将其他任何类型转化为Option类型
-
OptionFutureOrNull
on FutureOr<
T> ? - SendMessageOption on Messager
- TaskQueueExt on Object
- 从当前对象获取全局的TaskQueue
Constants
- debugMode → const bool
- kDartIsWeb → const bool
- profileMode → const bool
- releaseMode → const bool
Properties
-
idleWait
→ Future<
void> -
进入 事件循环 等待事件调度
flutter engine 根据任务类型是否立即执行事件回调
后续的任务会在恰当的时机运行,比如帧渲染优先等
no setter
-
releaseUI
→ Future<
void> -
no setter
- thenAwaitToken → Object
-
final
- tqCanDiscard → bool
-
no setter
- tqIgnore → bool
-
no setter
Functions
-
materialize(
dynamic data) → dynamic -
release(
Duration time) → Future< void>
Typedefs
- AddTask = void Function(FutureOr task)
-
Callback<
S, T> = S Function(T) -
CombineCallback<
S, T> = S Function(S, T) -
DataHandler<
T> = void Function(T value) - DoneHandler = void Function()
-
EventCallback<
T> = FutureOr< T> Function() -
TaskEntry._run
-
EventRunCallback<
T> = Future< void> Function(TaskEntry<T> task) - KeyControllerCallback = void Function(dynamic identityKey, KeyType keyType, String? isolateName)
- LogPathFn = dynamic Function(String path)
-
RemoteEntryPoint<
T> = FutureOr< Runner> Function(ServerConfigurations<T> args)