be194c3460
#KT-8597 Fixed
17 lines
378 B
Plaintext
Vendored
17 lines
378 B
Plaintext
Vendored
// "Replace with 'execute(action)'" "true"
|
|
|
|
class Executor {
|
|
val self: Executor
|
|
get() = this
|
|
|
|
@Deprecated("Use Executor.execute(Runnable) instead.", ReplaceWith("execute(action)"))
|
|
operator fun invoke(action: () -> Unit) {}
|
|
|
|
fun execute(action: () -> Unit) {}
|
|
}
|
|
|
|
fun usage(executor: Executor) {
|
|
executor.self.execute {
|
|
// do something
|
|
}
|
|
} |