Skip to content

Conversation

j3k0
Copy link

@j3k0 j3k0 commented Feb 4, 2017

Some mockup libraries (like testdouble) makes it easy to turn synchronous code into synchronous code (for easier testing).

By default, vasync breaks synchronous flow by calling callbacks inside a setImmediate block.

While this is desirable in production (generally also when running tests), it is also useful to let the user disable this behavior when required.

Some mockup libraries (like testdouble) makes it easy to turn
synchronous code into synchronous code (for easier testing).

By default, vasync breaks synchronous flow by calling callbacks
inside a `setImmediate` block.

While this is desirable in production (generally also when
running tests), it is also useful to let the user disable this
behaviour when required.
@j3k0
Copy link
Author

j3k0 commented Feb 4, 2017

Note, a side effect of this PR is also to stop defining setImmediate() globally when it's not already defined.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant