Skip to content

Error when using ember-concurrency #410

@clintongreen

Description

@clintongreen

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions