Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

queue writes until first connection is established #19

Open
tj opened this issue Mar 13, 2014 · 6 comments
Open

queue writes until first connection is established #19

tj opened this issue Mar 13, 2014 · 6 comments

Comments

@tj
Copy link
Contributor

tj commented Mar 13, 2014

mostly for testing etc, annoying to add a ton of callbacks for initialization

@juliangruber
Copy link
Contributor

+1

1 similar comment
@ralphtheninja
Copy link
Contributor

+1

@ralphtheninja
Copy link
Contributor

Not only for testing imo. It makes the code using nsq.js simpler as well.

@tj
Copy link
Contributor Author

tj commented May 1, 2015

kinda hacky :( it's a fundamental flaw in node as a platform, feels weird doing per-library fixes

@juliangruber
Copy link
Contributor

people can just use this: https://github.com/juliangruber/deferred-method. would you consider adding it to core though?

@tj
Copy link
Contributor Author

tj commented May 1, 2015

mixed feelings, it's definitely annoying to not have, but definitely a fundamental problem that everything in node has issues with, so in that sense a separate module makes sense

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants