weak

This is a convenience function for creating a new weak reference wrapper for a given object.

weak
(
T
)
()
if (
is(T == class)
)

Parameters

object
Type: T

The object to create a reference for.

Return Value

Type: WeakReference!T

A new weak reference to the given object.

Meta