machty/ember-concurrency
Fork: 157 Star: 689 (更新于 2024-11-12 17:11:31)
license: MIT
Language: JavaScript .
ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
最后发布版本: 4.0.1 ( 2024-03-09 12:14:30)
ember-concurrency
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?
-
Open an Issue.
- Try to replicate the issue within an ember-twiddle
- Ask a question in the
#e-concurrency
channel at the Ember Community Discord server
Contributing
See the Contributing guide for details.
最近版本更新:(数据更新于 2024-10-18 17:25:06)
2024-03-09 12:14:30 4.0.1
2024-02-06 15:04:31 4.0.0
2024-02-05 06:19:07 4.0.0-beta.1
2023-08-25 09:06:56 3.1.1
2023-08-01 11:35:23 3.1.0
2023-04-05 02:38:29 3.0.0
2022-09-02 22:49:25 2.3.4
2022-09-02 20:52:14 2.3.3
2022-08-25 02:12:25 2.3.2
2022-08-24 23:50:07 2.3.1
machty/ember-concurrency同语言 JavaScript最近更新仓库
2024-11-21 23:03:24 bia-pain-bache/BPB-Worker-Panel
2024-11-21 22:46:48 MHSanaei/3x-ui
2024-11-21 07:00:59 nodejs/node
2024-11-21 00:49:46 FortAwesome/Font-Awesome
2024-11-18 14:26:02 projectdiscovery/nuclei-templates
2024-11-17 14:42:23 koodo-reader/koodo-reader