Skip to content

Commit

Permalink
feat: add availability to support concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs committed Jul 27, 2024
1 parent 5bd75f2 commit 6005fe9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public extension CollectionReference {
/// - encoder: An encoder instance to use to run the encoding.
/// - Throws: `Error` if the backend rejected the write.
/// - Returns: A `DocumentReference` pointing to the newly created document.
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
@discardableResult
func addDocument<T: Encodable>(from value: T,
encoder: Firestore.Encoder = Firestore.Encoder()) async throws
Expand Down

0 comments on commit 6005fe9

Please sign in to comment.