Skip to content

Function: when() ​

Call Signature ​

ts
function when(predicate: () => boolean, opts?: IWhenOptions): Promise<void> & {
  cancel: void;
};

Defined in: mobx:

Parameters ​

ParameterType
predicate() => boolean
opts?IWhenOptions

Returns ​

Promise<void> & { cancel: void; }

Call Signature ​

ts
function when(
   predicate: () => boolean, 
   effect: Lambda, 
   opts?: IWhenOptions): IReactionDisposer;

Defined in: mobx:

Parameters ​

ParameterType
predicate() => boolean
effectLambda
opts?IWhenOptions

Returns ​

IReactionDisposer