Home / Function/ timerFunc() — vue Function Reference

timerFunc() — vue Function Reference

Architecture documentation for the timerFunc() function in next-tick.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7b52f39b_edca_e88a_aac7_58220f505f07["timerFunc()"]
  bf792703_842a_50eb_c357_a2c1c61e235e["next-tick.ts"]
  7b52f39b_edca_e88a_aac7_58220f505f07 -->|defined in| bf792703_842a_50eb_c357_a2c1c61e235e
  8962b3f5_7552_fd40_f54b_577feeb9a23e["nextTick()"]
  8962b3f5_7552_fd40_f54b_577feeb9a23e -->|calls| 7b52f39b_edca_e88a_aac7_58220f505f07
  style 7b52f39b_edca_e88a_aac7_58220f505f07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/next-tick.ts lines 43–51

  timerFunc = () => {
    p.then(flushCallbacks)
    // In problematic UIWebViews, Promise.then doesn't completely break, but
    // it can get stuck in a weird state where callbacks are pushed into the
    // microtask queue but the queue isn't being flushed, until the browser
    // needs to do some other work, e.g. handle a timer. Therefore we can
    // "force" the microtask queue to be flushed by adding an empty timer.
    if (isIOS) setTimeout(noop)
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does timerFunc() do?
timerFunc() is a function in the vue codebase, defined in src/core/util/next-tick.ts.
Where is timerFunc() defined?
timerFunc() is defined in src/core/util/next-tick.ts at line 43.
What calls timerFunc()?
timerFunc() is called by 1 function(s): nextTick.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free