mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-15 08:31:31 +00:00
Deprecate currentThread property
This commit is contained in:
@@ -2,13 +2,10 @@
|
||||
@file:JvmName("ThreadsKt")
|
||||
package kotlin.concurrent
|
||||
|
||||
import java.util.concurrent.Executor
|
||||
import java.util.concurrent.ExecutorService
|
||||
import java.util.concurrent.Future
|
||||
|
||||
/**
|
||||
* Returns the current thread.
|
||||
*/
|
||||
@Deprecated("Use Thread.currentThread()", ReplaceWith("Thread.currentThread()"), level = DeprecationLevel.ERROR)
|
||||
public val currentThread: Thread
|
||||
get() = Thread.currentThread()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user