Open in app
Roman Elizarov
7.3K Followers
About

Sign in

7.3K Followers
About
Open in app
В чём разница между первым примером:
1

Александр Васильев

Roman Elizarov

Roman Elizarov

Sep 13, 2018·1 min read

In the second example requestSomeData is declared inside a class that implements CoroutineScope . See the docs for CoroutineScope, which contains full-blown example.

Written by

Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

More from Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

More From Medium

Deep recursion with coroutines

Roman Elizarov

Null is your friend, not a mistake

Roman Elizarov

A Tribute to Java

Roman Elizarov

Reactive Streams and Kotlin Flows

Roman Elizarov

Functional Programming is on the rise

Roman Elizarov

Programming Language Evolution

Roman Elizarov

Kotlin and Exceptions

Roman Elizarov

Shared flows, broadcast channels

Roman Elizarov

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store