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
689 stars 157 forks source link

Error: Accessing __ec_cancel__ is deprecated. #463

Closed Turbo87 closed 2 years ago

Turbo87 commented 2 years ago

Ember Data lately started throwing errors like this:

Error: Accessing __ec_cancel__ is deprecated.  Only available methods to access on a promise returned from model.save() are .then, .catch and .finally
    at handleDeprecationWorkflow (http://localhost:7357/assets/vendor.js:77665:15)
    at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:44403:9)
    at deprecationCollector (http://localhost:7357/assets/vendor.js:77702:5)
    at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:44403:9)
    at http://localhost:7357/assets/test-support.js:7547:10
    at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:44403:9)
    at invoke (http://localhost:7357/assets/vendor.js:44415:9)
    at Object.deprecate (http://localhost:7357/assets/vendor.js:44371:28)
    at Object.get (http://localhost:7357/assets/vendor.js:94927:18)
    at TaskInstanceExecutor.handleYieldedValue (http://localhost:7357/assets/vendor.js:151531:36)

It seems that the combination of using ember-concurrency with recent ember-data releases is the problem.

Turbo87 commented 2 years ago

see https://github.com/machty/ember-concurrency/pull/464#issuecomment-1135499258