NativeThread enum

Execution thread model for native module operations on host platforms (iOS/Android).

Directs the host bridge runtime to execute the corresponding native method on the designated dispatch queue or thread pool.

Example:

@BloomAsyncFunction(thread: NativeThread.io)
Future<String> readBigFile(String path) => invokeAsync('readBigFile', {'path': path});
Inheritance
Available extensions

Values

ui → const NativeThread

Main UI thread. Required for direct view, window, and layout manipulations.

background → const NativeThread

Concurrent background worker queue (DispatchQueue.global() on iOS, Dispatchers.Default on Android).

io → const NativeThread

High-throughput I/O queue (DispatchQueue.io on iOS, Dispatchers.IO on Android).

customExecutor → const NativeThread

Dedicated serial dispatch queue ensuring strict FIFO execution order.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<NativeThread>
A constant List of the values in this enum, in order of their declaration.