assertNotInCollect

Asserts that we are not inside a GC collection cycle, by performing a no-op GC operation. If we are, an InvalidMemoryOperationError is raised by the runtime.

@nogc
void
assertNotInCollect
()

Meta