Skip to content

Commit 27c2c23

Browse files
committed
Clean up headerdoc to remove Promise reference
1 parent 72c63bd commit 27c2c23

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/Apollo/ApolloStore.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public final class ApolloStore {
5454

5555
/// Clears the instance of the cache. Note that a cache can be shared across multiple `ApolloClient` objects, so clearing that underlying cache will clear it for all clients.
5656
///
57-
/// - Returns: A promise which fulfills when the Cache is cleared.
57+
/// - Parameters:
58+
/// - callbackQueue: The queue to call the completion block on. Defaults to `DispatchQueue.main`.
59+
/// - completion: [optional] A completion block to be called after records are merged into the cache.
5860
public func clearCache(callbackQueue: DispatchQueue = .main, completion: ((Result<Void, Error>) -> Void)? = nil) {
5961
queue.async(flags: .barrier) {
6062
let result = Result { try self.cache.clear() }

0 commit comments

Comments
 (0)