Module that implements a weak reference to an object.
ATTENTION: This functionality does not work with classical persistence (--legacy-persistence moc flag).
Usage example: Import from the core package to use this module.
motoko name=import
import WeakReference "mo:core/WeakReference";public func allocate<T>(obj : T) : WeakReference<T>public func get<T>(self : WeakReference<T>) : ?Tpublic func isLive<T>(self : WeakReference<T>) : Bool