-
-
Save laevandus/0e06e3dd02ba8adcc631119581da8cab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func storeData(_ dataProvider: @escaping () -> Data?, identifier: Identifier = UUID().uuidString) async throws -> Identifier { | |
return try await withCheckedThrowingContinuation({ continuation in | |
self.storeData(dataProvider, identifier: identifier) { result in | |
continuation.resume(with: result) | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment