We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40cc1bc commit ebfdb97Copy full SHA for ebfdb97
hooks/src/main/kotlin/com/intuit/hooks/AsyncParallelHook.kt
@@ -7,14 +7,12 @@ public abstract class AsyncParallelHook<F : Function<*>> : AsyncBaseHook<F>("Asy
7
protected suspend fun call(invokeWithContext: suspend (F, HookContext) -> Unit) {
8
val context = setup(invokeWithContext)
9
10
- return taps.map { tapInfo ->
11
- coroutineScope {
+ coroutineScope {
+ taps.forEach { tapInfo ->
12
launch {
13
invokeWithContext(tapInfo.f, context)
14
}
15
16
- }.forEach {
17
- it.join()
18
19
20
0 commit comments