Function WaitUntil

  • 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

  • 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}}

    Returns boolean

Generated using TypeDoc