Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove suspend lambda parameter with CoroutineScope receiver rule #4746

Closed
hfhbd opened this issue Apr 22, 2022 · 0 comments · Fixed by #4747
Closed

Remove suspend lambda parameter with CoroutineScope receiver rule #4746

hfhbd opened this issue Apr 22, 2022 · 0 comments · Fixed by #4747

Comments

@hfhbd
Copy link
Contributor

hfhbd commented Apr 22, 2022

There is no clear answer yet which uses [of marking suspend CoroutineScope.() -> Unit] have to be prohibited and which shouldn't

https://youtrack.jetbrains.com/issue/KT-52042/Clarifying-suspend-lambda-and-function-with-coroutineScope-as-pa#focus=Comments-27-6029021.0-0
So I would revert marking the lambda parameter too and focus on suspend fun CoroutineScope.foo only.

Originally posted by @hfhbd in #4616 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant