Composable Concurrency Tasks
summary
Claims that Ember Concurrency uses ES6 generators to make async code concise and cancelable are demonstrated with concrete examples: generator-based tasks yield intermediate promises so later steps don’t run, removing need for isDestroyed checks. A reusable progress task helper is built by wrapping task functions; tests gain reliability via ember-concurrency-test-waiter; retry logic and exponential backoff arrive through ember-concurrency-retryable. Demos and unit tests run and show cancellation, test waiting, and retry schedules working as described.
AI-written summary · about
chapters (7)
- 0:00Introduction and background
- 3:59Understanding generators
- 6:16Generators in practice
- 8:53Ember concurrency basics
- 13:32Building custom decorators
- 18:04Testing with concurrency
- 20:56Retries and conclusion
related talks
31mState, Time, and Concurrency
18mPlease wait… Oh, It Didn't Work!
25mWhat's the hardest thing TIMING! about async?
15mI Yield for Generators
41mNext Generation Asynchronous Patterns in JavaScript
28mThe Next Generation of Testing
45mNext Generation Asynchronous Patterns in JavaScript
22mUsing Ember to Make the Seemingly Impossible Easy
