Skip to content

Async version is not async #11

@addaleax

Description

@addaleax

This is not an asynchronous call (and does throw an exception in the current node.js master):

setTimeout(__calculate(), 0);

You could use setTimeout(__calculate, 0);, but recursive setTimeout calls are slowed down (to avoid tasks hogging the CPU, I assume), which leads to timeouts in the test cases. Maybe just go for setImmediate or similar here?

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