Contents

scope(_:)

Sets the user identity for document-related operations that occur within the closure passed in.

Declaration

@discardableResult func scope<R>(_ access: () throws -> R) rethrows -> R

Parameters

  • access:

    A closure containing document-related operations . Operations in the closure will be attributed to this user identity.

Return Value

The result of the closure.

See Also

Setting the scope