Skip to content

process.nextTick still starves the event loop #80

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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