Amazon Vinyl
    Preparing search index...

    Class TimeoutSlot

    A TimeoutSlot provides a way to have a managed window timeout that can be added to a disposer, and guarantee that there is only one timeout active at a time.

    Implements

    Index
    • Sets a timeout, clearing any existing timeout first.

      Parameters

      • callback: () => void

        The callback to invoke after the given time has elapsed.

      • Optionaltime: number

        The amount of time to wait, in seconds.

      Returns void