One Logo Pool Ball
SwiftData · IOS API REFERENCE

DefaultSerialModelExecutor

class · iOS 17.0+ · SDK 27.1

class DefaultSerialModelExecutor

An object that safely performs storage-related tasks using an isolated model context.

Members (3)

method · iOS 17.0+

asUnownedSerialExecutor

TypeScript
asUnownedSerialExecutor(): SDKHandle
Swift declaration
func asUnownedSerialExecutor() -> UnownedSerialExecutor

Convert this executor value to the optimized form of borrowed executor references.

get · iOS 17.0+

modelContext

TypeScript
get modelContext(): ModelContext
Swift declaration
final let modelContext: ModelContext
init · iOS 17.0+

init

TypeScript
static init(modelContext: ModelContext): DefaultSerialModelExecutor
Swift declaration
init(modelContext: ModelContext)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

DefaultSerialModelExecutor.enqueue(_:)

The iOS SDK compiler rejected this binding: instance method 'arg' requires that 'ExecutorJob' conform to 'Copyable'

All SwiftData types →