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
  40183ce3_c856_2972_4e0c_538305004190["timerFunc()"]
  1cefcbb5_8da7_601a_1ead_879af025d954["nextTick()"]
  1cefcbb5_8da7_601a_1ead_879af025d954 -->|calls| 40183ce3_c856_2972_4e0c_538305004190
  style 40183ce3_c856_2972_4e0c_538305004190 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