Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
14 lines
264 B
JavaScript
Executable file
14 lines
264 B
JavaScript
Executable file
define(function(require, exports, module) {
|
|
'use strict';
|
|
|
|
var resolved = Promise.resolve();
|
|
|
|
/**
|
|
* Very similar to node's nextTick.
|
|
* Much faster than setTimeout or window.postMessage
|
|
*/
|
|
module.exports = function(callback) {
|
|
resolved.then(callback);
|
|
};
|
|
|
|
});
|