Roman Elizarov
1 min readNov 5, 2018

--

There are many ways to define blocking. The definition I gave in this story is pragmatic and provides for a useful mental model — if your main thread is blocked, then UI freezes.

In Kotlin suspend keyword designates a function that can suspend an execution of a coroutine (but it does not have to).

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (2)