@@ -210,7 +210,7 @@ internal open class CancellableContinuationImpl<in T>(
210210 is Segment <* > -> callSegmentOnCancellation(state, cause)
211211 }
212212 // Complete state update
213- detachChildIfNonResuable ()
213+ detachChildIfNonReusable ()
214214 dispatchResume(resumeMode) // no need for additional cancellation checks
215215 return true
216216 }
@@ -220,7 +220,7 @@ internal open class CancellableContinuationImpl<in T>(
220220 if (cancelLater(cause)) return
221221 cancel(cause)
222222 // Even if cancellation has failed, we should detach child to avoid potential leak
223- detachChildIfNonResuable ()
223+ detachChildIfNonReusable ()
224224 }
225225
226226 private inline fun callCancelHandlerSafely (block : () -> Unit ) {
@@ -500,7 +500,7 @@ internal open class CancellableContinuationImpl<in T>(
500500 is NotCompleted -> {
501501 val update = resumedState(state, proposedUpdate, resumeMode, onCancellation, idempotent = null )
502502 if (! _state .compareAndSet(state, update)) return @loop // retry on cas failure
503- detachChildIfNonResuable ()
503+ detachChildIfNonReusable ()
504504 dispatchResume(resumeMode) // dispatch resume, but it might get cancelled in process
505505 return // done
506506 }
@@ -536,7 +536,7 @@ internal open class CancellableContinuationImpl<in T>(
536536 is NotCompleted -> {
537537 val update = resumedState(state, proposedUpdate, resumeMode, onCancellation, idempotent)
538538 if (! _state .compareAndSet(state, update)) return @loop // retry on cas failure
539- detachChildIfNonResuable ()
539+ detachChildIfNonReusable ()
540540 return RESUME_TOKEN
541541 }
542542 is CompletedContinuation <* > -> {
@@ -557,7 +557,7 @@ internal open class CancellableContinuationImpl<in T>(
557557 }
558558
559559 // Unregister from parent job
560- private fun detachChildIfNonResuable () {
560+ private fun detachChildIfNonReusable () {
561561 // If instance is reusable, do not detach on every reuse, #releaseInterceptedContinuation will do it for us in the end
562562 if (! isReusable()) detachChild()
563563 }
0 commit comments