Can I have airhorns go off next time I accidentally use
Thread.yield()
instead of
kotlin.coroutines.yield()
?
📯 1
😁 1
m
Mike
12/10/2018, 2:36 PM
If you use Detekt, you can define Forbidden Imports, so your build will fail if you use Thread.yield.
Not exactly airhorns, but…
You might be able to exclude Thread.yield from import suggestions in IntelliJ (if you use it).
👍 1
e
edwinRNDR
12/10/2018, 2:40 PM
Thanks, it was indeed caused by IntelliJ suggesting it