Function shredder::collect [−][src]
pub fn collect()
Expand description
A function for manually running a collection, ignoring the heuristic that governs normal garbage collector operations.
This can be an extremely slow operation, since the algorithm is
designed to be run in the background, while this method runs it on the thread that calls the
method. Additionally, you may end up blocking waiting to collect, since shredder
doesn’t allow
two collections at once (and if this happens, you’ll effectively get two collections in a row).
Example
use shredder::collect; collect(); // Manually run GC