Instance Method (Default implementation)swift 6.0.3_Concurrency
isSameExclusiveExecutionContext(other:)
- iOS
- 17.0+
- macOS
- 14.0+
- tvOS
- 17.0+
- watchOS
- 10.0+
func isSameExclusiveExecutionContext(other: Self) -> Bool
func isSameExclusiveExecutionContext(other: Self) -> Bool
sScf12_ConcurrencyE31isSameExclusiveExecutionContext5otherSbx_tF
What are these?2DHZL
import _Concurrency
protocol SerialExecutor : Executor
A service that executes jobs.
@frozen struct Bool
A value type whose instances are either true
or false
.
func isSameExclusiveExecutionContext(other: Self) -> Bool
If this executor has complex equality semantics, and the runtime needs to compare two executors, it will first attempt the usual pointer-based equality / check, / and if it fails it will compare the types of both executors, if they are the same, / it will finally invoke this method, in an attempt to let the executor itself decide / if this and the other
executor represent the same serial, exclusive, isolation context.
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 checkIsolated()
@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.