Skip to content

setTimeout or setImmediate shim #29

@kennethjor

Description

@kennethjor

I'm sure this is not the first time it's come up, but I would like to see the Vert.x JavaScript module support support some form of the setTimeout or setImmediate functions out of the box. This would make it immediately compatible with tools which require this, such as Q or async.

I created a pull request for Q, but kriskowal suggest adding support for one of these functions in Vert.x itself, and to be honest I agree. I make extensive use for both async and Q throughout my code, and I've had to use custom versions of both in order to make them work. Would it be possible to just add a shim around vertx.runOnContext or similar? If it already exists in the code, can we enable it by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions