Reactively wait for a time. uses setTimeout and cleans up if the caller is cleaned up.

Usage in a template

{{#let (WaitUntil 500) as |delayFinished|}}
   {{#if delayFinished}}

     text displayed after 500ms

   {{/if}}
{{/let}}
  • Parameters

    • Rest...args: [maybeDelayMs?: number | (() => undefined | number)]

    Returns boolean

  • Returns boolean