How to use the ember-concurrency.didCancel function in ember-concurrency

To help you get started, we’ve selected a few ember-concurrency examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github machty / ember-concurrency / tests / dummy / snippets / task-cancelation-example-2.js View on Github external
}).catch((e) => {
        if (!didCancel(e)) {
          // re-throw the non-cancelation error
          throw e;
        }
      });
    }
github TryGhost / Ghost-Admin / lib / koenig-editor / addon / services / koenig-drag-drop-handler.js View on Github external
}).catch((error) => {
                        // ignore cancelled tasks and throw unrecognized errors
                        if (!didCancel(error)) {
                            throw error;
                        }
                    });
                }
github linxmix / linx / app / mixins / save-all.js View on Github external
function _ignoreCancellationErrors(e) {
  const isTaskCancelationError = didCancel(e);
  if (!isTaskCancelationError) {
    return Ember.RSVP.reject(e);
  }
}