You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }
Expected Behavior
Actual Behavior
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() {})@computedanywhere but thenumResultsTaskfunction using@taskfromember-concurrencySteps to Reproduce
ember install ember-concurrency@taskfor a function eg:@task({ maxConcurrency: 1, restartable: true }) *numResultsTask(searchContext) { // do something with searchContext }