Skip to content

2.3.2 - even simpler task(async () => {}) API

Compare
Choose a tag to compare
@machty machty released this 24 Aug 18:12
· 103 commits to master since this release
  • Simplified the async arrow fn task() API to allow omitting the this param, e.g.
    myTask = task(async () => {}) (#477)
  • The codemods mentioned in the 2.3.0 release have been updated to prefer this simplified syntax:
    • Convert @task decorator based APIs to the new async-arrow fn
      • npx machty-ember-concurrency-codemods async-arrow-task app/**/*.ts
      • npx machty-ember-concurrency-codemods async-arrow-task app/**/*.js
    • If you've used ember-concurrency-ts, run the following codemod to remove taskFor()
      • npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.ts
      • npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.js