ensureNotInGC

Crash if the GC is running. Useful in destructors to avoid reliance GC resource release. However since this is not @nogc, this is not suitable in runtime-less D.

nothrow
void
ensureNotInGC
(
string resourceName = null
)

See Also

Meta