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
  597beed7_b0d5_8b25_6c0f_db8839a4bf2b["timerFunc()"]
  c7b631c5_e768_3daa_7580_aa7f38598d78["nextTick()"]
  c7b631c5_e768_3daa_7580_aa7f38598d78 -->|calls| 597beed7_b0d5_8b25_6c0f_db8839a4bf2b
  style 597beed7_b0d5_8b25_6c0f_db8839a4bf2b 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.
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