(predicate: Selector<T>, effect?: (value: T) => any | (() => any))
| 56 | } |
| 57 | |
| 58 | export function when<T>(predicate: Selector<T>, effect?: (value: T) => any | (() => any)): Promise<T> { |
| 59 | return _when<T>(predicate, effect, false); |
| 60 | } |
| 61 | export function whenReady<T>(predicate: Selector<T>, effect?: (value: T) => any | (() => any)): Promise<T> { |
| 62 | return _when<T>(predicate, effect, true); |
| 63 | } |
no test coverage detected