awaitClose

abstract suspend fun awaitClose()

Suspend until all current watched references are either collected or detected as a leak, and throw an exception for any new calls to watchReference.