Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhuvaneshw committed Jan 28, 2024
1 parent f5430a7 commit 2846dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.acutecoder.cotask.subtask

import com.acutecoder.cotask.CoTask
import com.acutecoder.cotask.ProgressedCoTask
import com.acutecoder.cotask.base.InterfaceProvider
import com.acutecoder.cotask.base.StartableTaskHandler
import com.acutecoder.cotask.base.Task
Expand Down Expand Up @@ -58,7 +58,7 @@ internal class StartableSubCoTask<PreviousResult, Result, Progress>(
if (it is CancellationException) {
coroutineContext.cancelChildren()
onCancelled?.let { onCancelled ->
CoTask.onMainThread { onCancelled.invoke() }
ProgressedCoTask.onMainThread { onCancelled.invoke() }
}
invokeOnEnd()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.acutecoder.cotask.subtask

import com.acutecoder.cotask.CoTask
import com.acutecoder.cotask.ProgressedCoTask
import com.acutecoder.cotask.base.InterfaceProvider
import com.acutecoder.cotask.base.Task
import com.acutecoder.cotask.base.TaskHandler
Expand Down Expand Up @@ -44,7 +44,7 @@ internal class SubCoTask<PreviousResult, Result, Progress>(
if (it is CancellationException) {
coroutineContext.cancelChildren()
onCancelled?.let { onCancelled ->
CoTask.onMainThread { onCancelled.invoke() }
ProgressedCoTask.onMainThread { onCancelled.invoke() }
}
invokeOnEnd()
}
Expand Down

0 comments on commit 2846dca

Please sign in to comment.