summaryrefslogtreecommitdiff
path: root/preact/compat/scheduler.js
blob: 01c4ceba0c37b5cb957c1d3c7ebe84109f88331b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// see scheduler.mjs

function unstable_runWithPriority(priority, callback) {
	return callback();
}

module.exports = {
	unstable_ImmediatePriority: 1,
	unstable_UserBlockingPriority: 2,
	unstable_NormalPriority: 3,
	unstable_LowPriority: 4,
	unstable_IdlePriority: 5,
	unstable_runWithPriority,
	unstable_now: performance.now.bind(performance)
};