when i manually execute the garbage collector, how can I tell when it's completed? : <p>I'm writing a web server application using NodeJS 6.3.0.
the application is executed with <code>--expose-gc</code> parameter, so I have the <code>global.gc()</code> function available. the question is how can I know when the manual execution of the garbage collector completed.</p>

<p>is global.gc() a synchronous function and that means that the next line of code will be executed when the function completed it task?</p>

<p>can I somehow monitor when my specific execution of garbage collector completed?</p>

<p>thanks!</p>
