Instance Method (Default implementation)swift 6.0.3_Concurrency
asUnownedSerialExecutor
- iOS
- 17.0+
- macOS
- 14.0+
- tvOS
- 17.0+
- watchOS
- 10.0+
func asUnownedSerialExecutor() -> UnownedSerialExecutor
func asUnownedSerialExecutor() -> UnownedSerialExecutor
import _Concurrency
protocol SerialExecutor : Executor
A service that executes jobs.
@frozen struct UnownedSerialExecutor
An unowned reference to a serial executor (a SerialExecutor
value).
func asUnownedSerialExecutor() -> UnownedSerialExecutor
Convert this executor value to the optimized form of borrowed executor references.
@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)
func assertIsolated(_ message: @autoclosure () -> String = String(), file: StaticString = #fileID, line: UInt = #line)
Stops program execution if the current task is not executing on this serial executor.
func checkIsolated()
func isSameExclusiveExecutionContext(other: Self) -> Bool
@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)
func preconditionIsolated(_ message: @autoclosure () -> String = String(), file: StaticString = #fileID, line: UInt = #line)
Stops program execution if the current task is not executing on this serial executor.