Type alias PureAsyncSetter<T>

PureAsyncSetter<T>: ((new_value, rejectable?) => Promise<T>)

type definition for an async signal value setter function.
TODO: should an PureAsyncSetter<T> return a Promise<T> ? or should it return a Promise<boolean>, which should tell whether or not the value has changed (i.e. !signal.equal(old_value, new_value))

Type Parameters

  • T

Type declaration

    • (new_value, rejectable?): Promise<T>
    • Parameters

      Returns Promise<T>

Generated using TypeDoc