aboutsummaryrefslogtreecommitdiffstats
path: root/reactive/kotlinx-coroutines-rx2/src/RxCancellable.kt
blob: d76f12315b9b9687c998a07ba547d1a1c9cf0a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package kotlinx.coroutines.rx2

import io.reactivex.functions.*
import kotlinx.coroutines.*

internal class RxCancellable(private val job: Job) : Cancellable {
    override fun cancel() {
        job.cancel()
    }
}