json-gate icon indicating copy to clipboard operation
json-gate copied to clipboard

"Asynchronous"

Open englercj opened this issue 10 years ago • 2 comments

I think the readme/comments should be reworded, it says that if you pass a callback the function will execute asynchronously which is not true. It still runs synchronously, it just passes the error/data to the callback. I was confused for a while why it wasn't acting asynchronously.

englercj avatar Jan 16 '15 22:01 englercj

I suppose you're right. how do you suppose it should be worded? "asynchronous syntax"?

oferei avatar Jan 17 '15 12:01 oferei

@oferei Doesn't have to be too complicated, "you can pass a callback that will receive the error and result, or don't pass one and any errors will be thrown."

englercj avatar Jan 17 '15 14:01 englercj