Allow ordinary execute to be cancelled

This commit is contained in:
Mygod
2020-07-03 07:56:35 +08:00
parent 798275e9c9
commit 69750f6609
2 changed files with 32 additions and 21 deletions

View File

@@ -39,7 +39,7 @@ interface RootCommandChannel<T : Parcelable?> : Parcelable {
}
@Parcelize
internal class ChannelClosed(val index: Long) : RootCommandOneWay {
internal class CancelCommand(val index: Long) : RootCommandOneWay {
override suspend fun execute() = error("Internal implementation")
}