Interface WaitableCallback<ArgsT>

The result of calling useWaitableCallback

interface WaitableCallback<ArgsT> {
    bindArgs: ((...args) => WaitableCallback<[]>);
    isNotReady: ReadonlyBinding<boolean>;
    isReady: ReadonlyBinding<boolean>;
    (...args): TypeOrPromisedType<WaitResult>;
}

Type Parameters

  • ArgsT extends any[]

Properties

bindArgs: ((...args) => WaitableCallback<[]>)

Creates a WaitableCallback with pre-bound args

Type declaration

isNotReady: ReadonlyBinding<boolean>

The opposite of isReady

isReady: ReadonlyBinding<boolean>

true if all of the dependencies are ready (i.e. if all of the waitables are successfully loaded), false otherwise

Generated using TypeDoc