Get the Atom reference to the available capabilities for a given interface. Primarily useful for deriving other Atom values based on the capabilities or for subscribing to changes in the capabilities.
An atom reference to the available capabilities.
Get capabilities grouped by the module that contributed them.
An atom containing a record from module ID to capability implementations.
Live view over all contributions for a capability interface. Stable per interface: repeated calls return the same object.
Requests a single capability from the capability manager.
The capability.
Get capabilities from the capability manager.
An array of capabilities.
Lists capability interface identifiers that currently have at least one contribution.
Waits for a capability to be available.
The capability.
Promise form of waitFor, memoized per interface so repeated calls return the SAME reference — React dedupes suspended renders by thrown-promise identity, so a fresh promise per render would re-suspend forever.
A promise settling once at least one capability is contributed.
Interface for the Capability Manager. Provides methods for contributing, removing, and accessing capabilities.