Skip to content
This repository has been archived by the owner. It is now read-only.

How is this async? #12

Closed
YouriT opened this Issue Oct 7, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@YouriT
Copy link

commented Oct 7, 2017

From your source, you don't seem to do anything async here. Your JSON.parse is in the main thread and does block the event loop.

@Kikobeats

This comment has been minimized.

Copy link
Owner

commented Oct 10, 2017

Not real async because parsing is a pure CPU function.

The only thing you can do is deferred the execution/response for the next tick. Exactly the thing this library does.

BTW, I think this library is outdated; Currently Please, check json-future 😄

@Kikobeats Kikobeats closed this Oct 10, 2017

@Kikobeats Kikobeats added the question label Oct 10, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.