falcor
Version:
A JavaScript library for efficient data fetching.
16 lines (11 loc) • 354 B
JavaScript
var empty = {dispose: function() {}};
function ImmediateScheduler() {}
ImmediateScheduler.prototype.schedule = function schedule(action) {
action();
return empty;
};
ImmediateScheduler.prototype.scheduleWithState = function scheduleWithState(state, action) {
action(this, state);
return empty;
};
module.exports = ImmediateScheduler;