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

Error when using ember-concurrency #410

Open
clintongreen opened this issue Nov 16, 2021 · 1 comment
Open

Error when using ember-concurrency #410

clintongreen opened this issue Nov 16, 2021 · 1 comment

Comments

@clintongreen
Copy link

Expected Behavior

  • I expected the addon to work with my app

Actual Behavior

  • The app errors with this message:
  • Error: Assertion Failed: @computed can only be used on accessors or fields, attempted to use it with numResultsTask but that was a method. Try converting it to a getter (e.g. get numResultsTask() {})
  • I am not using @computed anywhere but the numResultsTask function using @task from ember-concurrency

Steps to Reproduce

  • Install ember-concurrency ember install ember-concurrency
  • Use @task for a function eg:
    @task({ maxConcurrency: 1, restartable: true }) *numResultsTask(searchContext) { // do something with searchContext }
@clintongreen
Copy link
Author

I'm trying to run this in the same folder as my app. I'm not sure this is how its supposed to be used so please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant