Roman Elizarov
1 min readFeb 1, 2019

--

Suspending function can block caller, but it can also suspend caller without blocking. Here I’m talking about a convention is that we agree not to write suspending functions that block, but only use their ability to suspend. Note, that the term “blocking” is defined differently in various languages and systems (for example, what we call “suspending” in Kotlin is called “blocking” in Go), so this maybe a source of confusion.

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

No responses yet