<Validation of blocking calls within non-blocking ...
# stackoverflow
u
Validation of blocking calls within non-blocking coroutine contexts in Kotlin We have semantic validations to prevent calling a suspend function from within a blocking non-coroutine context. Is there a way I can mark a function as blocking to at least warn that you are about to call a blocking function? If so, is there a way to semantically or at runtime to indicate that the current dispatcher used by the coroutine context is intended for non-blocking purposes and that you are about to call that function which you have marked as potentially blocking?