GitXplorerGitXplorer
m

ember-concurrency

public
689 stars
157 forks
85 issues

Commits

List of commits on branch master.
Verified
da780720871238d8ec0763465d7c92f22ec6d13a

Update README.md to include v2 addons (#574)

aaklkv committed 5 months ago
Verified
ce0b142d8b6089a35eba09697a75993f2bde6a2d

Remove re-exports for helpers (#573)

bbertdeblock committed 10 months ago
Unverified
4d6bee3b73f4a25f21017419c57d5d5b00ab31cd

Release 4.0.2

mmachty committed 10 months ago
Unverified
5d1759c551619fc6e2420f57881c7cc908c7e89a

4.0.2 changelog

mmachty committed 10 months ago
Verified
719b2750e48a6eb02da2fd745bed3032c1fddfc0

Make glint template an optional peer dependency (#572)

LLucasHillDex committed 10 months ago
Unverified
400f72be2f6cccee8c42654d7a49a1b6873f79a8

Release 4.0.1

mmachty committed 10 months ago

README

The README file for this repository.

ember-concurrency

Build Status NPM Ember Observer Score Ember Version

Improved concurrency primitives for Ember.js. Documentation can be found here.

Installation

ember-concurrency is an ember-cli addon. You can install it via:

ember install ember-concurrency

Configure Babel Transform

Ember Concurrency requires the use of a Babel Transform to convert tasks in the "async-arrow" notation (e.g. fooTask = task(async () => { /*...*/ }) into generator functions. Since Ember Concurrency 4.0.0+ is an Embroider V2 Addon, this Babel transform needs to be configured on the consuming application or addon.

// in app ember-cli-build.js

const app = new EmberApp(defaults, {
  // ...
  babel: {
    plugins: [
      // ... any other plugins
      require.resolve("ember-concurrency/async-arrow-task-transform"),

      // NOTE: put any code coverage plugins last, after the transform.
    ],
  }
});

// in V1 addon index.js

// ...
options: {
  babel: {
    plugins: [
      require.resolve('ember-concurrency/async-arrow-task-transform'),
    ],
  },
},

// in V2 addon babel.config.json
{
  "plugins": [
    [
      // ... any other plugins
    "ember-concurrency/async-arrow-task-transform"
  ]
}

See the test application for an example.

Documentation

The ember-concurrency documentation site is an ember-cli app with interactive examples powered by ember-concurrency. It runs from ember-concurrency's test app.

Problems?

Contributing

See the Contributing guide for details.