https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

bj0

01/03/2018, 8:46 PM
if I create a
Channel
in a coroutine, and I want that channel closed when the coroutine is canceled, is the only way to catch the
CancellationException
?
l

louiscad

01/04/2018, 7:42 AM
There's a syntax error in your sentence I guess
b

bj0

01/04/2018, 4:33 PM
What do you mean?
l

louiscad

01/04/2018, 4:47 PM
In the end: "the only way..." what is the only way?
b

bj0

01/04/2018, 4:51 PM
the only way to close the Channel when the coroutine is canceled
3 Views