Lucas Milotich
07/02/2021, 9:19 PMpublic fun CoroutineScope.cancel(message: String, cause: Throwable? = null): Unit = cancel(CancellationException(message, cause))
But it just cancel de coroutine and i don’t know what happens with the connection, buffers, etc.
Thanks!Aleksei Tirman [JB]
07/05/2021, 10:30 AMtry/finally
or use invokeOnCompletion method to free resources.Lucas Milotich
07/05/2021, 5:15 PM