Instance Method (Default implementation)swift 6.0.3_Concurrency
checkIsolated
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
func checkIsolated()
func checkIsolated()
import _Concurrency
protocol SerialExecutor : Executor
A service that executes jobs.
func checkIsolated()
Last resort “fallback” isolation check, called when the concurrency runtime is comparing executors e.g. during assumeIsolated()
and is unable to prove serial equivalence between the expected (this object), and the current executor.
func asUnownedSerialExecutor() -> UnownedSerialExecutor
@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 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.