Hosanna UI API v1.30.2-next
    Preparing search index...

    AsyncEventQueue manages a queue of asynchronous events for processing.

    • Allows adding, retrieving, completing, and clearing async events.
    • Once marked as completed, no new events can be added.
    Index

    Constructors

    Properties

    completed: boolean = false

    Indicates whether the queue has been marked as completed.

    events: IAsyncEvent<any>[] = []

    Internal array of queued async events.

    Methods

    • Adds an async event to the queue if not completed.

      Parameters

      Returns void

    • Clears all events from the queue.

      Returns void

    • Marks the queue as completed, preventing further events from being added.

      Returns void

    • Retrieves a shallow copy of all pending events in the queue.

      Returns IAsyncEvent<any>[]

      An array of pending async events.