<How can I prevent a kotlin extension from being u...
# stackoverflow
u
How can I prevent a kotlin extension from being used on my objects? For special threading issue in my app I created an object with a runOrQueue() method which accepts a block. Here is a simplified version for illustrative purpose: class SpecialThread { fun runOrQueue() {} } The problem is that when I'm trying to write code using this method, the IDE autocompletes first to a Kotlin extension method named run(), defined in the standard library:...