Interface CxPeer<TContext>

Context peer providing assets preceding those from context builder.

Type Parameters

  • TContext extends CxValues = CxValues

    Context type the assets provided for.

Hierarchy

  • SupplyPeer
    • CxPeer

Implemented by

Properties

rankCount: number

The number of CxAsset.Provided.rank asset ranks this peer contains.

supply: Supply

Context peer supply.

Revokes all assets provided by this peer once cut off.

Methods

  • Iterates over particular entry assets in the same order they are provided.

    Each asset reported to the given callback function until the latter returns false or there are no more assets.

    Type Parameters

    • TValue

    • TAsset

    Parameters

    • target: Target<TValue, TAsset, TContext>

      Context entry definition target to iterate over assets of.

    • cache: Cache

      Target context cache.

    • callback: Callback<TAsset>

      Assets callback.

    Returns void

  • Iterates over particular entry assets with the most recent assets iterated first. I.e. in reverse order to the order they are provided.

    Each asset reported to the given callback function until the latter returns false or there are no more assets.

    Type Parameters

    • TValue

    • TAsset

    Parameters

    • target: Target<TValue, TAsset, TContext>

      Context entry definition target to iterate over assets of.

    • cache: Cache

      Target context cache.

    • callback: Callback<TAsset>

      Assets callback.

    Returns void

  • Reads assets of particular entry value and start tracking of their additions.

    Type Parameters

    • TValue

    • TAsset

    Parameters

    • target: Target<TValue, TAsset, TContext>

      Context entry definition target to track assets for.

    • cache: Cache

      Target context cache.

    • receiver: Receiver<TAsset>

      A receiver to report existing and added assets to.

    • Optional tracking: CxTracking

      Tracking options.

    Returns Supply

    Assets supply. Stops assets tracking once cut off.

Generated using TypeDoc