Animesh Sahu
12/05/2020, 4:24 AMUnfinished workers detected, 1 workers leaked!
Use `Platform.isMemoryLeakCheckerActive = false` to avoid this check.
Here's a small repro:
object Testing {
val event = MutableSharedFlow<Int>(extraBufferCapacity = 8)
init {
event.subscriptionCount
// .onEach { println("Subscription Count: $it") } // Stub, For seeing the behavior
.launchIn(CoroutineScope(Dispatchers.Unconfined))
}
}
fun main() = runBlocking {
Testing
}
Edit: Sometimes the following error is generated as well:
Memory leaks detected, 76 objects leaked!
Use `Platform.isMemoryLeakCheckerActive = false` to avoid this check.
Dominaezzz
12/05/2020, 2:53 PMAnimesh Sahu
12/05/2020, 3:03 PMAnimesh Sahu
12/05/2020, 3:04 PMDominaezzz
12/05/2020, 3:32 PMDominaezzz
12/05/2020, 3:33 PMAnimesh Sahu
12/05/2020, 3:38 PMAnimesh Sahu
12/05/2020, 3:39 PMAnimesh Sahu
12/05/2020, 3:43 PMDominaezzz
12/05/2020, 3:44 PMAnimesh Sahu
12/06/2020, 5:42 AMDominaezzz
12/06/2020, 12:37 PMnapperley
12/06/2020, 7:54 PMAnimesh Sahu
12/13/2020, 3:25 AM