Skip to content

SerialExecutorReference

tevelee edited this page Jul 25, 2026 · 1 revision

SerialExecutorReference

An unmanaged reference to a serial executor.

public struct SerialExecutorReference: Equatable 

This is the ABI representation used for actor and executor hops. Its identity is not necessarily Swift reference-countable, so Echo treats it as a borrowed raw address.

Inheritance

Equatable

Initializers

init(identity:implementation:)

Creates a serial-executor reference from its runtime fields.

public init(identity: UnsafeRawPointer?, implementation: UInt) 

Properties

identity

The executor identity, or nil for the generic executor.

public let identity: UnsafeRawPointer?

implementation

Raw implementation word, including the low-bit kind tag.

public let implementation: UInt

isGeneric

Whether this is a generic executor reference.

public var isGeneric: Bool 

isDefaultActor

Whether this identifies a default actor executor.

public var isDefaultActor: Bool 

isSynchronousStart

Whether this is the special executor used by Task.immediate.

public var isSynchronousStart: Bool 

kind

The executor behavior tag, or nil for a future runtime-defined tag.

public var kind: Kind? 

witnessTable

The masked serial-executor witness-table address, if this is a custom serial executor. Its entries remain runtime-private.

public var witnessTable: UnsafeRawPointer? 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally