@jsonjoy.com/reactive-rpc
Version:
Reactive-RPC is a library for building reactive APIs over WebSocket, HTTP, and other RPCs.
9 lines • 406 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.microtask = void 0;
const nextTickMicrotask = typeof process === 'object' && typeof process.nextTick === 'function' ? process.nextTick : null;
const promiseMicrotask = (callback) => {
Promise.resolve().then(callback);
};
exports.microtask = nextTickMicrotask || promiseMicrotask;
//# sourceMappingURL=microtask.js.map
;