This class implements a weak reference wrapper for class T.
A weak reference will not prevent the object from being collected in a garbage collection cycle. If and when the object is collected, the internal reference to object will become null.
This weak reference wrapper is thread safe.
Create a weak reference wrapper for a given object.
Return the referenced object held in this weak reference wrapper. If and when the object is collected, this function will return null.
The type of class.
https://github.com/w0rp/dstruct/blob/master/source/dstruct/weak_reference.d
https://forum.dlang.org/post/kd03f2$26ju$1@digitalmars.com
See Implementation
This class implements a weak reference wrapper for class T.
A weak reference will not prevent the object from being collected in a garbage collection cycle. If and when the object is collected, the internal reference to object will become null.
This weak reference wrapper is thread safe.