Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Cancel (or not respond to) autocomplete if subsequent text is changed. #87

Description

@abargnesi

Changes to the BEL Statement input value should cancel (or not respond to) any in-flight completion promises.

The following describes the desired behavior:

  1. Type some text.
  2. debounce time passes; fetch completions in a promise
  3. Type some more text.
  4. The text change event should cancel the promise in (2) if it has not completed yet.

We may be able to tombstone the promise such that when it receives the completion response we can disregard it.

There may also be a work-around to cancel promises - see this gist.

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