Can I have airhorns go off next time I accidentall...
# coroutines
e
Can I have airhorns go off next time I accidentally use
Thread.yield()
instead of
kotlin.coroutines.yield()
?
📯 1
😁 1
m
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
Thanks, it was indeed caused by IntelliJ suggesting it