@aracna/core - v1.5.0
    Preparing search index...

    Class Status

    The Status class manages the status of anything that can have a 4-state status: idle, pending, success, error.

    Aracna Reference

    Index

    Constructors

    Properties

    data: Map<string, string>

    The Map that stores the status of each key.

    transformer: StatusTransformer

    The function that transforms the keys before storing them in the Map.

    Accessors

    Methods

    • Checks if the status of some given key is error.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of some given key is idle.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of some given key is pending.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of some given key is success.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Sets the status of the given keys to error.

      Parameters

      • ...keys: string[]

      Returns void

    • Retrieves the status of the given keys.

      Parameters

      • ...keys: string[]

      Returns string

    • Sets the status of the given keys to idle.

      Parameters

      • ...keys: string[]

      Returns void

    • Checks if the status of the given keys is error.

      Parameters

      • ...keys: string[]

      Returns boolean

    • Checks if the status of every given key is error.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of every given key is idle.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of every given key is pending.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of every given key is success.

      Parameters

      • ...keys: string[][]

      Returns boolean

    • Checks if the status of the given keys is idle.

      Parameters

      • ...keys: string[]

      Returns boolean

    • Checks if the status of the given keys is pending.

      Parameters

      • ...keys: string[]

      Returns boolean

    • Checks if the status of the given keys is success.

      Parameters

      • ...keys: string[]

      Returns boolean

    • Sets the status of the given keys to pending.

      Parameters

      • ...keys: string[]

      Returns void

    • Sets the status of the given keys to the given status.

      Parameters

      • keys: string[]
      • status: string

      Returns void

    • Sets the status of the given keys to success.

      Parameters

      • ...keys: string[]

      Returns void