Skip to content

Instantly share code, notes, and snippets.

@havremunken
Created April 17, 2021 20:12
Show Gist options
  • Save havremunken/5345483faf32c1adf0e1935440ce8936 to your computer and use it in GitHub Desktop.
Save havremunken/5345483faf32c1adf0e1935440ce8936 to your computer and use it in GitHub Desktop.
Template for ember-concurrency issue #422
{{page-title "MyApp"}}
{{!-- The following component displays Ember's default welcome message. --}}
{{!-- Feel free to remove this! --}}
{{outlet}}
<p>
Type here. Put two characters in the input, then delete both,
with less than 250ms between deletes. The tasks apparently
never stops running.
</p>
<input
type="text"
{{on 'input' (perform this.updateFilter value='target.value')}}
/>
<p>
LastSuccessful.Value: {{this.updateFilter.lastSuccessful.value}}
</p>
If task is running, it will show below:
{{#if this.updateFilter.isRunning}}
<p>
Task is currently running!
</p>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment