Created
June 3, 2022 11:29
-
-
Save myungpyo/1fae2f3d1c927c3b868b584de3fd57b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class ChildHandleNode( | |
@JvmField val childJob: ChildJob | |
) : JobCancellingNode(), ChildHandle { | |
override val parent: Job get() = job | |
override fun invoke(cause: Throwable?) = childJob.parentCancelled(job) | |
override fun childCancelled(cause: Throwable): Boolean = job.childCancelled(cause) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment