@audiotool/nexus - v0.0.12
    Preparing search index...

    Class Notifier<T>

    A Notifier is something that can notify subscribed parties of a change. If the notifier represents a value that has meaning outside of updates, look at ValueNotifier.

    If relevant, the following pattern can be used to only expose the subscribe function:

    class Foo {
    #notifier: Notifier<number> = new Notifier()
    get notifier(): Observable<number> {
    return this.#notifier
    }
    }

    or

    class Test {
    readonly #notifier: Notifier<number> = new Notifier()
    readonly observer = this.#notifier as Observable<number>
    }

    Type Parameters

    • T

    Implements

    Index

    Constructors

    Methods