Support CoroutineName
, which is not propagated to child coroutines
#4047
Labels
CoroutineName
, which is not propagated to child coroutines
#4047
Use case
In IJ we log coroutine dumps, here's an example subtree:
It's obvious that the
CoroutineName
is the name of the standalone coroutine, but it pollutes all its children names in the dump.This will also speed up coroutines a bit, because less elements in the context means less time spent in
CoroutineContext.get
.The Shape of the API
I don't see why
CoroutineName
is propagated to children at all, but I might miss some other use-case, so I'm asking to support a flag:CoroutineName("my coroutine", applyToChildren = false)
.The text was updated successfully, but these errors were encountered: