clock-mock
    Preparing search index...

    Class Timer

    A Timer that lives in the mock clock

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _onTimeout: ((...a: any[]) => any) | null

    use the property name _onTimeout so that the global clearTimeout method in Node will make it no-op if it gets passed there.

    clock: Clock

    Clock governing this timer

    reffed: boolean = true

    set by Timer#unref

    These timers don't keep the event loop open anyway, so this doesn't do much, but it's useful when testing to ensure that a timeout had .ref() or .unref() called on it.

    w: number

    When this timer should fire

    Methods

    • Remove this timer from the clock's queue.

      Returns void