Why doesn't `clickable` use `runBlocking` to allow...
# compose
c
Why doesn't
clickable
use
runBlocking
to allow the click callback to be suspend internally
d
Unless I'm misunderstanding something, you can always call
runBlocking
in the handler yourself.
c
True, but isn't it more convenient to have it built in?
a
I can't think of an example where using runBlocking inside a click handler isn't a mistake
3
You're by definition blocking the main thread
c
Maybe I'm wrong, but doesn't the click handler run in a background thread?
a
No