Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage async await #8289

Merged
merged 18 commits into from
Jul 23, 2021
Prev Previous commit
Next Next commit
style
  • Loading branch information
paulb777 committed Jul 23, 2021
commit fe4475c706b2c093504c9fc9fd759d202177b55c
14 changes: 7 additions & 7 deletions FirebaseStorageSwift/Sources/AsyncAwait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
import FirebaseStorage

#if swift(>=5.5)
public extension StorageReference {
@discardableResult
func putDataAwait(_ uploadData: Data,
metadata: StorageMetadata? = nil) async throws -> StorageMetadata {
// TODO: Add a parameter to capture StorageUploadTask and to enable Progress tracking.
public extension StorageReference {
@discardableResult
func putDataAwait(_ uploadData: Data,
metadata: StorageMetadata? = nil) async throws -> StorageMetadata {
// TODO: Add a parameter to capture StorageUploadTask and to enable Progress tracking.
// -> StorageUploadTask {
return try await __putDataGlue(uploadData, metadata: metadata)
return try await __putDataGlue(uploadData, metadata: metadata)
}
}
}
#endif