Home / File/ Scheduler.js — react Source File

Scheduler.js — react Source File

Architecture documentation for Scheduler.js, a javascript file in the react codebase. 1 imports, 5 dependents.

File javascript BabelCompiler Validation 1 imports 5 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  cdb34c69_08af_f2ef_1fdd_d05bff2eea56["Scheduler.js"]
  cf0374be_82da_b932_450f_9145a907b064["scheduler"]
  cdb34c69_08af_f2ef_1fdd_d05bff2eea56 --> cf0374be_82da_b932_450f_9145a907b064
  6b05669d_2f09_63a5_e79f_0afc195f25a3["ReactFiberCompleteWork.js"]
  6b05669d_2f09_63a5_e79f_0afc195f25a3 --> cdb34c69_08af_f2ef_1fdd_d05bff2eea56
  1f955e30_ff03_d9f9_d498_58b7dc7858dc["ReactFiberDevToolsHook.js"]
  1f955e30_ff03_d9f9_d498_58b7dc7858dc --> cdb34c69_08af_f2ef_1fdd_d05bff2eea56
  85d2c68c_7609_2c66_22fb_5f02e8a2e8fe["ReactFiberHooks.js"]
  85d2c68c_7609_2c66_22fb_5f02e8a2e8fe --> cdb34c69_08af_f2ef_1fdd_d05bff2eea56
  a22f22c8_f97a_86c8_be5a_4b91a6a21eab["ReactFiberRootScheduler.js"]
  a22f22c8_f97a_86c8_be5a_4b91a6a21eab --> cdb34c69_08af_f2ef_1fdd_d05bff2eea56
  d73e9290_2d2e_5d3f_97dd_84929f205c77["ReactFiberWorkLoop.js"]
  d73e9290_2d2e_5d3f_97dd_84929f205c77 --> cdb34c69_08af_f2ef_1fdd_d05bff2eea56
  style cdb34c69_08af_f2ef_1fdd_d05bff2eea56 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

// This module only exists as an ESM wrapper around the external CommonJS
// Scheduler dependency. Notice that we're intentionally not using named imports
// because Rollup would use dynamic dispatch for CommonJS interop named imports.
// When we switch to ESM, we can delete this module.
import * as Scheduler from 'scheduler';

export const scheduleCallback = Scheduler.unstable_scheduleCallback;
export const cancelCallback = Scheduler.unstable_cancelCallback;
export const shouldYield = Scheduler.unstable_shouldYield;
export const requestPaint = Scheduler.unstable_requestPaint;
export const now = Scheduler.unstable_now;
export const getCurrentPriorityLevel =
  Scheduler.unstable_getCurrentPriorityLevel;
export const ImmediatePriority = Scheduler.unstable_ImmediatePriority;
export const UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
export const NormalPriority = Scheduler.unstable_NormalPriority;
export const LowPriority = Scheduler.unstable_LowPriority;
export const IdlePriority = Scheduler.unstable_IdlePriority;
export type SchedulerCallback = (isSync: boolean) => SchedulerCallback | null;

// this doesn't actually exist on the scheduler, but it *does*
// on scheduler/unstable_mock, which we'll need for internal testing
export const log = Scheduler.log;
export const unstable_setDisableYieldValue =
  Scheduler.unstable_setDisableYieldValue;

Domain

Subdomains

Dependencies

  • scheduler

Frequently Asked Questions

What does Scheduler.js do?
Scheduler.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in Scheduler.js?
Scheduler.js defines 1 function(s): SchedulerCallback.
What does Scheduler.js depend on?
Scheduler.js imports 1 module(s): scheduler.
What files import Scheduler.js?
Scheduler.js is imported by 5 file(s): ReactFiberCompleteWork.js, ReactFiberDevToolsHook.js, ReactFiberHooks.js, ReactFiberRootScheduler.js, ReactFiberWorkLoop.js.
Where is Scheduler.js in the architecture?
Scheduler.js is located at packages/react-reconciler/src/Scheduler.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-reconciler/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free