Coroutine Context and Scope

fun CoroutineScope.launch(
context: CoroutineContext = EmptyCoroutineContext,
// ...
): Job
fun CoroutineScope.launch(
// ...
block: suspend CoroutineScope.() -> Unit
): Job

--

--

--

Project Lead for the Kotlin Programming Language @JetBrains

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

RecyclerViews made easy with Epoxy

Are you still didn’t start using Version Control for Data?

How To Create Your Own NFTs

[Refactoring] Review Method Extraction From LeetCode

Alibaba Cloud Awarded Best ISV Partner Award for MongoDB

3. Maximum Subarray (#53) [EASY]

Setting up a Hadoop Cluster on RHEL Linux

AWS Kinesis Overview

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
Roman Elizarov

Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

More from Medium

Introduction to Kotlin Coroutines

Unshared parts of SharedFlow — Kotlin

👨🏼‍💻 All About Kotlin Inline(Value) Class

Idiomatic WeakReference implementation by delegate in Kotlin