Skip to content

Why UV_RUN_ONCE and not UV_RUN_NOWAIT? #2466

Closed
@tolmasky

Description

@tolmasky

In node.cc immediately after LoadEnvironment() in Start()it jumps to:

more = uv_run(env->event_loop(), UV_RUN_ONCE);

I understand why it's UV_RUN_ONCE on each iteration of the loop, not why it starts that way. I imagine there are some default events that happen no matter what the first time through, could someone enlighten me as to what those are (that stop node from just blocking forever)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issues and PRs that require attention from people who are familiar with C++.libuvIssues and PRs related to the libuv dependency or the uv binding.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions