- Preparing search index...
- The search index is not available
atomic-fns
- callAsync<T>(fn: ((successCallback: ((data: T) => any), errorCallback: Function<any>) => any)): Promise<T>
-
Parameters
-
fn: ((successCallback: ((data: T) => any), errorCallback: Function<any>) => any)
-
- (successCallback: ((data: T) => any), errorCallback: Function<any>): any
-
Parameters
-
successCallback: ((data: T) => any)
-
- (data: T): any
-
Returns any
-
errorCallback: Function<any>
Returns any
Returns Promise<T>
Invokes a given function that accepts callback arguments for success, error and returns a
Promise
of the results.Returns
A
Promise
that will be resolved whensuccessCallback
is called or rejected whenerrorCallback
is called.