mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
* Implement pauseExecution, continueExecution, dumpQueue * Expose firstCallbackNode. Fix tests. Revert results.json * Put scheduler pausing behind a feature flag
33 lines
735 B
JavaScript
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,
|
|
};
|