time Based In
fun timeBasedIn(scope: CoroutineScope, timeSource: TimeSource, leakThreshold: Duration, callback: LeakDetector.Callback): LeakDetector
Create a time-based LeakDetector which reports leaks if watched references have not been garbage collected before the leakThreshold.
This function may return a no-op detector if the platform does not support weak references.