Function releaseObj

Releases and nullify a single object. The object may be null.

bool releaseObj(T) (
  ref T obj,
  in Flag!"disposeOnZero" disposeOnZero = Yes.disposeOnZero
)
if (isAtomicRefCounted!T);

Returns

whether the object was disposed.