EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
ApolloExtension
EXTENSION
ApolloExtension
Swift
1public extension ApolloExtension where Base == DispatchQueueMethods
performAsyncIfNeeded(on:action:)
Swift
1static func performAsyncIfNeeded(on callbackQueue: DispatchQueue?, action: @escaping () -> Void)returnResultAsyncIfNeeded(on:action:result:)
Swift
1static func returnResultAsyncIfNeeded<T>(on callbackQueue: DispatchQueue?,
2 action: ((Result<T, Error>) -> Void)?,
3 result: Result<T, Error>)