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

Add some brief documentation on use with Octane/decorators #334

Closed maxfierke closed 4 years ago

maxfierke commented 4 years ago

Raised in issue #271, there is currently no official documentation on using ember-concurrency with native classes and other Octane-related use-cases.

This adds a brief section to "Task Function Syntax" in the docs that shows an example of use with a Glimmer component and mentions the ember-concurrency-decorators addon as a more concise approach to the default decorators via the task() property.

Thanks @jenweber for the Glimmer example!

jenweber commented 4 years ago

This is super, thanks for following through to add this!