Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

[timers] setImmediate executes after setTimeout #25788

@a0viedo

Description

@a0viedo

Is this a known issue? From the docs:

To schedule the "immediate" execution of callback after I/O events callbacks and before setTimeout and setInterval .

But this code

setTimeout(function(){console.log('timeout')}, 0)
setImmediate(function(){console.log('immediate')})

outputs first timeout in v0.12.5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions