Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in ember-concurrency-decorators #326

Closed
wagenet opened this issue Oct 22, 2019 · 4 comments
Closed

Merge in ember-concurrency-decorators #326

wagenet opened this issue Oct 22, 2019 · 4 comments
Labels
decorators Issues related to use with decorators discussion

Comments

@wagenet
Copy link
Contributor

wagenet commented Oct 22, 2019

The docs for ember-concurrency-decorators say they'll likely be merged back in to ember-concurrency itself. Is this still planned? If so, what's blocking it?

@buschtoens
Copy link
Contributor

Hi 👋

I'm the guy that wrote this statement, which I think you're referring to:

Eventually, all work in ember-concurrency-decorators will likely flow back into ember-concurrency at some point. Until then, we want to mature and test-drive the API here first.

The major thing missing IMO is machty/ember-concurrency-decorators#56, which would add proper support for TypeScript / type-safety. It in turn is blocked by #319, which would add the type definitions upstream here. There's also some changes required because of the new Stricter Generators in TypeScript 3.6, which potentially are incompatible with prior TS versions.
I don't think the lack of TS support is a reason to not merge ember-concurrency-decorators back into ember-concurrency though.

However, I personally don't know yet, if the current API of ember-concurrency-decorators is perfect yet. Considering we want to bake "nice" decorator support into ember-concurrency itself, do we only port over @task, or also all other decorators? Do we want to try a completely different API first?

@wagenet
Copy link
Contributor Author

wagenet commented Oct 23, 2019

@buschtoens while I agree with the concern about switching APIs up too much, I also think non-e-c-d version is pretty terrible, so IMO it might just be worth picking something.

@maxfierke
Copy link
Collaborator

IMO if the current e-c-decorators approach using stage-1 decorators is likely to continue working for future stages of decorators, then it feels pretty well-baked to me: cleaner than current approach, already supports third-party e-c add-ons like e-c-test-waiters and e-c-retryable, and feels pretty intuitive if you've used e-c for a bit.

Perhaps the TypeScript question should remain separate, if possible? Unless the choice of an official decorator would preclude some level of TypeScript support (which @buschtoens, maybe you're getting at with that article on Stricter Generators). There are likely other questions around TypeScript support that need to be answered (and if/when #302 gets merged, that'll probably change the conversation a bit too.)

definitely needs a weigh-in from @machty, though

@maxfierke maxfierke added decorators Issues related to use with decorators discussion labels Oct 23, 2019
@maxfierke
Copy link
Collaborator

Closing, as these decorators now exist in 2.0.0-rc.1+ (including 2.0.0, which has just been released.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decorators Issues related to use with decorators discussion
Projects
None yet
Development

No branches or pull requests

3 participants