UNPKG

1.33 kBJavaScriptView Raw
1/**
2 * @license React
3 *
4 * Copyright (c) 2013-present, Facebook, Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */
9
10'use strict';
11
12(function(global, factory) {
13 typeof exports === 'object' && typeof module !== 'undefined'
14 ? (module.exports = factory(require('react')))
15 : typeof define === 'function' && define.amd // eslint-disable-line no-undef
16 ? define(['react'], factory) // eslint-disable-line no-undef
17 : (global.Schedule = factory(global));
18})(this, function(global) {
19 function unstable_now() {
20 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_now.apply(
21 this,
22 arguments
23 );
24 }
25
26 function unstable_scheduleWork() {
27 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_scheduleWork.apply(
28 this,
29 arguments
30 );
31 }
32
33 function unstable_cancelScheduledWork() {
34 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_cancelScheduledWork.apply(
35 this,
36 arguments
37 );
38 }
39
40 return Object.freeze({
41 unstable_now: unstable_now,
42 unstable_scheduleWork: unstable_scheduleWork,
43 unstable_cancelScheduledWork: unstable_cancelScheduledWork,
44 });
45});