Class: IDResolutionJob

Defined in: src/id-resolution-job.coffee

Instance Method Summary

Constructor Details

- (void) constructor(uid, service)

Instance Method Details

- (void) fetchStatus(cb) (bound)

- (void) fetchErrorMessage(cb) (bound)

- (void) fetchResults(cb) (bound)

- (void) del(cb) (bound)

- (Promise<Object>) poll(onSuccess, onError, onProgress)

Poll the service until the results are available.

Examples:

Poll a job

job.poll().then (results) -> handle results

Parameters:

  • onSuccess (Function) The success handler (optional)
  • onError (Function) The error handler for if the job fails (optional).
  • onProgress (Function) The progress handler to receive status updates.

Returns:

  • (Promise<Object>) — A promise to yield the results.

See also: