-
Notifications
You must be signed in to change notification settings - Fork 0
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
Why have you dereferenced ctx explicitely? #19
Comments
@Dhruv-Garg79 that is correct. But this way I just make the work of the garbage collector a little bit easier 🙂 An this way also other programmers can see - this is the end. |
But how does that make the work of GC easier? The other point regarding - this is the end. seems nice. |
@Dhruv-Garg79 my logic is - GC need a little bit more time to understand when the object is not reachable. This way you tell it directly. Don't think about this too much, it probably have no difference |
yeah, got it. Just wanted to understand If I am missing something. |
Hey first of all thanks for this project, I was exploring uWebSockets.js.
I was going through your code and saw that you have explicitly dereferenced
ctx = null
insetupRouteHandlers.js
file.According to my understanding, it will get dereferenced on it's own when the function block ends.
please correct me If I am wrong.
The text was updated successfully, but these errors were encountered: