make

open override fun <T : Any> make(creator: () -> T): Reference<T>

A Function that creates a reference.

Return

The referenced object and a function that returns the same object if the reference is still valid.

Parameters

T

The type of the referenced object.

creator

A function that can create a new T.