MCPcopy
hub / github.com/MithrilJS/mithril.js / startTimer

Function startTimer

ospec/ospec.js:152–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 if (current === cursor) next()
151 }
152 function startTimer() {
153 timeout = setTimeout(function() {
154 timeout = undefined
155 finalizeAsync("async test timed out after " + delay + "ms")
156 }, Math.min(delay, 2147483647))
157 }
158 function setDelay (t) {
159 if (typeof t !== "number") throw new Error("timeout() and o.timeout() expect a number as argument")
160 delay = t

Callers 1

nextFunction · 0.85

Calls 1

finalizeAsyncFunction · 0.85

Tested by

no test coverage detected