Deprecate currentThread property

This commit is contained in:
Ilya Gorbunov
2016-01-29 21:38:25 +03:00
parent 42bd8df2ca
commit fc3f98dae2
@@ -2,13 +2,10 @@
@file:JvmName("ThreadsKt") @file:JvmName("ThreadsKt")
package kotlin.concurrent package kotlin.concurrent
import java.util.concurrent.Executor
import java.util.concurrent.ExecutorService
import java.util.concurrent.Future
/** /**
* Returns the current thread. * Returns the current thread.
*/ */
@Deprecated("Use Thread.currentThread()", ReplaceWith("Thread.currentThread()"), level = DeprecationLevel.ERROR)
public val currentThread: Thread public val currentThread: Thread
get() = Thread.currentThread() get() = Thread.currentThread()