File tree 1 file changed +5
-2
lines changed
stub/src/main/java/io/grpc/kotlin 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ import io.grpc.MethodDescriptor
22
22
import io.grpc.Status
23
23
import kotlinx.coroutines.CancellationException
24
24
import kotlinx.coroutines.CoroutineName
25
+ import kotlinx.coroutines.CoroutineStart
25
26
import kotlinx.coroutines.NonCancellable
26
27
import kotlinx.coroutines.cancel
27
28
import kotlinx.coroutines.channels.Channel
28
29
import kotlinx.coroutines.channels.onFailure
29
30
import kotlinx.coroutines.coroutineScope
30
31
import kotlinx.coroutines.flow.Flow
31
- import kotlinx.coroutines.flow.collect
32
32
import kotlinx.coroutines.flow.flow
33
33
import kotlinx.coroutines.launch
34
34
import kotlinx.coroutines.withContext
@@ -309,7 +309,10 @@ object ClientCalls {
309
309
headers.copy()
310
310
)
311
311
312
- val sender = launch(CoroutineName (" SendMessage worker for ${method.fullMethodName} " )) {
312
+ val sender = launch(
313
+ context = CoroutineName (" SendMessage worker for ${method.fullMethodName} " ),
314
+ start = CoroutineStart .UNDISPATCHED
315
+ ) {
313
316
try {
314
317
request.sendTo(clientCall, readiness)
315
318
clientCall.halfClose()
You can’t perform that action at this time.
0 commit comments