Skip to content

Commit dd3cd27

Browse files
committed
Do not deprecate CoroutineStart.invoke for now
1 parent ebc8866 commit dd3cd27

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/AbstractCoroutine.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public abstract class AbstractCoroutine<in T>(
141141
*/
142142
public fun start(start: CoroutineStart, block: suspend () -> T) {
143143
initParentJob()
144-
@Suppress("DEPRECATION")
145144
start(block, this)
146145
}
147146

@@ -159,7 +158,6 @@ public abstract class AbstractCoroutine<in T>(
159158
*/
160159
public fun <R> start(start: CoroutineStart, receiver: R, block: suspend R.() -> T) {
161160
initParentJob()
162-
@Suppress("DEPRECATION")
163161
start(block, receiver, this)
164162
}
165163

common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineStart.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ public enum class CoroutineStart {
8989
* * [ATOMIC] uses [startCoroutine].
9090
* * [UNDISPATCHED] uses [startCoroutineUndispatched].
9191
* * [LAZY] does nothing.
92-
*
93-
* @suppress **Deprecated**: Use [AbstractCoroutine.start]
9492
*/
95-
@Deprecated(message = "Use AbstractCoroutine.start") // todo: make it internal & rename
9693
public operator fun <T> invoke(block: suspend () -> T, completion: Continuation<T>) =
9794
when (this) {
9895
CoroutineStart.DEFAULT -> block.startCoroutineCancellable(completion)
@@ -108,10 +105,7 @@ public enum class CoroutineStart {
108105
* * [ATOMIC] uses [startCoroutine].
109106
* * [UNDISPATCHED] uses [startCoroutineUndispatched].
110107
* * [LAZY] does nothing.
111-
*
112-
* @suppress **Deprecated**: Use [AbstractCoroutine.start]
113108
*/
114-
@Deprecated(message = "Use AbstractCoroutine.start") // todo: make it internal & rename
115109
public operator fun <R, T> invoke(block: suspend R.() -> T, receiver: R, completion: Continuation<T>) =
116110
when (this) {
117111
CoroutineStart.DEFAULT -> block.startCoroutineCancellable(receiver, completion)

0 commit comments

Comments
 (0)