WebTransportRuntime class final

Owns the native runtime and routes completions to their Dart completers.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isRunning → bool
Whether the native runtime is running in this isolate.
no setter
logs → Stream<String>
Diagnostics emitted by the native layer (WT_OP_LOG events).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel(int opId) → void
Drops a handler (used when starting the operation failed immediately).
fireAndForget(wt_status_t begin(int opId)) → wt_status_t
Starts begin and reports only its immediate status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
oneShot(Object operation, wt_status_t begin(int opId)) → Future<NativeEvent>
Starts begin and completes with the single event it produces.
register(void handler(NativeEvent)) → int
Registers a completion handler and returns its correlation id.
shutdown() → void
Stops the runtime and fails every pending completion.
start({int workerThreads = 0, int dispatchBatchMax = 64}) → void
Starts the runtime. Calling it more than once is a no-op.
toString() → String
A string representation of this object.
inherited
waitIdle({Duration timeout = const Duration(seconds: 5)}) → bool
Blocks until all in-flight operations completed, or the timeout expires.

Operators

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

Static Properties

instance → WebTransportRuntime
One runtime per process: the native library exposes a single event sink.
final