Skip to content

UV_RUN_ONCE regression after commit 6600954 #4260

Open
@bnoordhuis

Description

@bnoordhuis

Refs: 6600954

Here is how my code works in a nutshell:

  • There are 2 unref'd handles that check if there are promises to run (1 prepare, 1 check)
  • If there are any promises to run they start an idle handle, which is ref'd
  • Timers run on a uv_timer_t

After this change, timers run last, and thus my check handle hasn't run as the last thing, which is what I used to keep the loop alive by starting the idle handle. This means the loop could exit early, if new promises were created on a timer, since check handles no longer run afterwards.

Originally posted by @saghul in #3686 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions