Interface WaitableCallback<ArgsT>

The result of calling useWaitableCallback

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

Type Parameters

  • ArgsT extends any[]

Properties

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

Creates a WaitableCallback with pre-bound args

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