machty / ember-concurrency

ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
http://ember-concurrency.com
MIT License
691 stars 155 forks source link

Add onError parameter to perform helper #443

Closed maxfierke closed 2 years ago

maxfierke commented 2 years ago

Allows setting to reporting function for reporting to error handlers, etc. Also allows setting to null to swallow all errors. This is useful when using the (perform) helper with tasks that are always having their error states handled in the UI. In these cases, errors being raised either may be surfaced in the UI and the render errors will be extraneous or there's a desire to log directly to an error reporting service.

Fixes #435