Thanks to visit codestin.com
Credit goes to github.com

Skip to content

process.nextTick still starves the event loop #80

@spion-h4

Description

@spion-h4

Hi! I noticed bcrypt.js uses process.nextTick in node to delay the calculation.

Unfortunately, repeated calls to nextTick will still starve the event loop: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick

nextTick is unfortunately badly named, it should've been called 'endOfThisTick`.

Can we switch to setImmediate instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions