Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Patch process.nextTick() #505

@sjelin

Description

@sjelin

node's process.nextTick() is used by a lot of libraries (q, for instance) but isn't patched by zone.js:

require('zone.js');
Zone.current.fork({}).run(() => {
  Zone.current.foo = 'bar';
  process.nextTick(() => {
    console.log(Zone.current.foo); // undefined
  });
})

process.nextTick was basically setImmediate before setImmediate existed. Now it's like setImmediate except it gets scheduled in a higher priority queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions