trySaveInstance

private fun <T> trySaveInstance(obj: T): T

Save an instance in the mutable list cache that prevents generated responses from being garbage-collected before the other end of the protocol can use them.

Return

Same instance as given, unchanged. Allows this function to be chained, or used to pass through an anonymous instance.

Parameters

obj

Instance to save.

Sources

jvm source
Link copied to clipboard