MCPcopy Create free account
hub / github.com/unconed/TermKit / asyncCallback

Function asyncCallback

HTML/termkit.js:27–33  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

25///////////////////////////////////////////////////////////////////////////////
26
27function asyncCallback(func) {
28 return function () {
29 var that = this;
30 var args = arguments;
31 setTimeout(function () { func.apply(that, args); }, 0);
32 };
33}
34
35function async(func) {
36 var that = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected