hoc081098 / hoc081098/FlowExt

`Flow<T>.launchNowIn(scope: CoroutineScope, context: CoroutineContext)`, `Flow<T>.launchIn(scope: CoroutineScope, context: CoroutineContext, start: CoroutineStart)`

Open
#200 0 comments 0 reactions 0 assignees View on GitHub
documentation enhancement good first issue help wanted PRs-are-welcome
Dominant language
Kotlin
Stars
419
Forks
27
Avg merge
17m
Merged PRs (30d)
1

Description

Ref: https://github.com/JetBrains/intellij-community/blob/b7c6890aa5c2e526791c082b82c755f71276f1fd/platform/collaboration-tools/src/com/intellij/collaboration/async/CoroutineUtil.kt#L71C1-L77C4

```kotlin
/**
* Similar to [launchIn], but starts the collection with [CoroutineStart.UNDISPATCHED] and allows overriding context
*/
fun Flow.launchNowIn(scope: CoroutineScope, context: CoroutineContext = EmptyCoroutineContext): Job =
scope.launch(context, CoroutineStart.UNDISPATCHED) {
collect()
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.