Contents

grantCapability(_:)

Grants the specified capability to the process.

Declaration

func grantCapability(_ capability: ProcessCapability) throws -> ProcessCapability.Grant

Parameters

  • capability:

    The capability to grant.

Return Value

A ProcessCapability.Grant object that represents the granted capability.

Discussion

When the process no longer needs the capability, call invalidate() on the returned object.

See Also

Coordinating processes