scope(_:)
Sets the user identity for document-related operations that occur within the async closure passed in.
Declaration
@discardableResult func scope<R>(_ access: () async throws -> R) async rethrows -> RParameters
- access:
An async closure containing document-related operations . Operations in the closure will be attributed to this user identity.
Return Value
The result of the closure.