Garbage Collector object

The Garbage Collector is an internal interface to register and free allocated chunks of memory that needs to be released once a specific request context has ended. Due to the nature of callbacks in the events handler, a request can finalize on any moment, if some memory was allocated in a callback and the response depends of this memory, the Garbage Collector must take care of it to avoid memory leaks.

Usage

gc->method(...);

Methods