-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: setTimeout(...).unref is not a function #12
Comments
Line 33 in 028df6a
I had to remove |
That's very strange, |
It'd be cool to see what the exact setup is here, but the problem isn't stoppable's. stoppable could conceivably provide a workaround (e.g., using @thyb If you're still encountering this, what happens when you restore |
I've seen things like this happen when run from Jest, which runs in Browser-mode by default, which means it replaces setTimeout and does not return an object with an |
Could the call to The point of |
replace |
fwiw we ended up forking and making a ton of improvements to this nice class, now at https://github.com/apollographql/apollo-server/blob/main/packages/server/src/plugin/drainHttpServer/stoppable.ts
|
@glasser Care to publish that module standalone? |
That hasn't been a priority for us --- I'd be happy to see somebody else copy it back from us and release and maintain it. |
Hi!
I have some problems with using stoppable on node v8.7.0
here are couple of stack traces:
I use babel, jest, flow and lots of other things, so it's hard to say is it problem of stoppable or not.
The text was updated successfully, but these errors were encountered: