Home / Function/ start() — fastapi Function Reference

start() — fastapi Function Reference

Architecture documentation for the start() function in termynal.js from the fastapi codebase.

Function javascript FastAPI Applications calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  f693669c_751b_13db_a04c_e34d87d400df["start()"]
  000471a9_ef7a_d9dc_ef48_af16a8d6655c["Termynal"]
  f693669c_751b_13db_a04c_e34d87d400df -->|defined in| 000471a9_ef7a_d9dc_ef48_af16a8d6655c
  760e745f_41df_15c2_5b93_4b6ef98e12a2["init()"]
  760e745f_41df_15c2_5b93_4b6ef98e12a2 -->|calls| f693669c_751b_13db_a04c_e34d87d400df
  9f684b98_4234_86c4_e6a8_88a2808d9fd7["addFinish()"]
  f693669c_751b_13db_a04c_e34d87d400df -->|calls| 9f684b98_4234_86c4_e6a8_88a2808d9fd7
  b0dad3b4_7046_f9b4_bbde_3ae1dee7acce["_wait()"]
  f693669c_751b_13db_a04c_e34d87d400df -->|calls| b0dad3b4_7046_f9b4_bbde_3ae1dee7acce
  c1666950_ab84_7e24_2a36_b1d1a8751b9d["progress()"]
  f693669c_751b_13db_a04c_e34d87d400df -->|calls| c1666950_ab84_7e24_2a36_b1d1a8751b9d
  7568a8e9_3530_204a_4196_d97364db0ae3["addRestart()"]
  f693669c_751b_13db_a04c_e34d87d400df -->|calls| 7568a8e9_3530_204a_4196_d97364db0ae3
  style f693669c_751b_13db_a04c_e34d87d400df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs/en/docs/js/termynal.js lines 96–127

    async start() {
        this.addFinish()
        await this._wait(this.startDelay);

        for (let line of this.lines) {
            const type = line.getAttribute(this.pfx);
            const delay = line.getAttribute(`${this.pfx}-delay`) || this.lineDelay;

            if (type == 'input') {
                line.setAttribute(`${this.pfx}-cursor`, this.cursor);
                await this.type(line);
                await this._wait(delay);
            }

            else if (type == 'progress') {
                await this.progress(line);
                await this._wait(delay);
            }

            else {
                this.container.appendChild(line);
                await this._wait(delay);
            }

            line.removeAttribute(`${this.pfx}-cursor`);
        }
        this.addRestart()
        this.finishElement.style.visibility = 'hidden'
        this.lineDelay = this.originalLineDelay
        this.typeDelay = this.originalTypeDelay
        this.startDelay = this.originalStartDelay
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does start() do?
start() is a function in the fastapi codebase, defined in docs/en/docs/js/termynal.js.
Where is start() defined?
start() is defined in docs/en/docs/js/termynal.js at line 96.
What does start() call?
start() calls 4 function(s): _wait, addFinish, addRestart, progress.
What calls start()?
start() is called by 1 function(s): init.

Analyze Your Own Codebase

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

Try Supermodel Free