react/packages/shared/forks/Scheduler.umd.js
Kevin Chavez 8df4d59be5 Implement pauseExecution, continueExecution, dumpQueue for Scheduler (#14053)
* Implement pauseExecution, continueExecution, dumpQueue

* Expose firstCallbackNode. Fix tests. Revert results.json

* Put scheduler pausing behind a feature flag
2018-12-06 13:57:23 -08:00

33 lines
735 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
const {
unstable_cancelCallback,
unstable_now,
unstable_scheduleCallback,
unstable_shouldYield,
unstable_getFirstCallbackNode,
unstable_continueExecution,
unstable_pauseExecution,
} = ReactInternals.Scheduler;
export {
unstable_cancelCallback,
unstable_now,
unstable_scheduleCallback,
unstable_shouldYield,
unstable_getFirstCallbackNode,
unstable_continueExecution,
unstable_pauseExecution,
};