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

task() + async arrow fns #465

Closed machty closed 1 year ago

machty commented 2 years ago

Implements Part 4 of this RFC, specifically, a new form of task() that accepts an async arrow fn that gets babel-transpiled into a generator function. This addresses a number of TS issues surrounding decorators and generator functions.