routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
function makeNext() {
|
||||
if (typeof process === "object" && typeof process.nextTick === "function") {
|
||||
return process.nextTick;
|
||||
} else if (typeof setImmediate === "function") {
|
||||
return setImmediate;
|
||||
} else {
|
||||
return function next(f: () => void) {
|
||||
setTimeout(f, 0);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default makeNext();
|
||||
Reference in New Issue
Block a user