invoke

operator fun invoke(userScope: CoroutineScope): T

Creates or returns the existing value while incrementing the reference count.

When the given userScope is canceled the reference count is decremented. Once the count is 0 the value is freed.


operator fun invoke(referenceToken: DisposableGroup): T

Creates or returns the existing value while incrementing the reference count.

When the given referenceToken is disposed the reference count is decremented. Once the count is 0 the value is freed.