Home / Class/ Event Class — react Architecture

Event Class — react Architecture

Architecture documentation for the Event class in ReactFlightAsyncDebugInfo-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bf0e325e_e8df_f76a_27f2_a425a2d383e8["Event"]
  3ff990fb_4d2c_e7ba_63a9_b0c56a5b8b81["ReactFlightAsyncDebugInfo-test.js"]
  bf0e325e_e8df_f76a_27f2_a425a2d383e8 -->|defined in| 3ff990fb_4d2c_e7ba_63a9_b0c56a5b8b81
  647fb265_4a6e_5369_9e8d_02d3bda2e3a2["constructor()"]
  bf0e325e_e8df_f76a_27f2_a425a2d383e8 -->|method| 647fb265_4a6e_5369_9e8d_02d3bda2e3a2
  b5a7eb1b_afac_3f39_2ddf_ccf7ae6a0806["wait()"]
  bf0e325e_e8df_f76a_27f2_a425a2d383e8 -->|method| b5a7eb1b_afac_3f39_2ddf_ccf7ae6a0806
  0f101108_f5e0_f786_afaf_5055d1aaf391["set()"]
  bf0e325e_e8df_f76a_27f2_a425a2d383e8 -->|method| 0f101108_f5e0_f786_afaf_5055d1aaf391

Relationship Graph

Source Code

packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js lines 3420–3435

    class Event {
      constructor() {
        this._resolve = null;
        this._promise = new Promise(resolve => {
          this._resolve = resolve;
        });
      }

      wait() {
        return this._promise;
      }

      set() {
        this._resolve(true);
      }
    }

Domain

Frequently Asked Questions

What is the Event class?
Event is a class in the react codebase, defined in packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js.
Where is Event defined?
Event is defined in packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js at line 3420.

Analyze Your Own Codebase

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

Try Supermodel Free