Name

FutureContainerModel

Version

1.0.0

Author

Matthew Holman maholman@coca-cola.com

Represents a list of Future

Implements

Action

Action Internally adds the provided Future to the map

Computed

Other

Action

  • Removes a Future model from the collection.

    Parameters

    • id: string

      the id of the Future to be removed

    Returns Promise<void>

    Remarks

    If a remove service function was passed in as part of the options in the constructor then it will be used. Otherwise the default delete service will be invoked.

    See

    deleteFutureService

  • Adds a Future model into the collection.

    Parameters

    • model: FutureRequest

      the Future model to be added

    Returns Promise<any>

    Remarks

    If an add service function was passed in as part of the options in the constructor then it will be used. Otherwise the default add service will be invoked.

    See

    addFutureService

Action Internally adds the provided Future to the map

  • Parameters

    Returns void

  • Parameters

    • id: string

    Returns void

Computed

  • get futures(): IFutureModel<Record<string, unknown>>[]
  • Returns IFutureModel<Record<string, unknown>>[]

    the list of Futures

    Getter

    Computed value that will recalculate automatically whenever Futures are added or removed from the map.

Other

  • Convenience function that will retrieve the IFutureModel based on the id.

    Parameters

    • futureId: string

      the id of the future to be retrieved

    Returns undefined | IFutureModel<Record<string, unknown>>

    the IFutureModel or undefined if not available in the list

  • ------------------SUBSCRIPTIONS----------------------

    Parameters

    Returns void