Thread
#compose
    Chachako

    Chachako

    1 year ago
    Why doesn't
    clickable
    use
    runBlocking
    to allow the click callback to be suspend internally
    Dominaezzz

    Dominaezzz

    1 year ago
    Unless I'm misunderstanding something, you can always call
    runBlocking
    in the handler yourself.
    Chachako

    Chachako

    1 year ago
    True, but isn't it more convenient to have it built in?
    Adam Powell

    Adam Powell

    1 year ago
    I can't think of an example where using runBlocking inside a click handler isn't a mistake
    You're by definition blocking the main thread
    Chachako

    Chachako

    1 year ago
    Maybe I'm wrong, but doesn't the click handler run in a background thread?
    Adam Powell

    Adam Powell

    1 year ago
    No