File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
firebase-ai/src/main/kotlin/com/google/firebase/ai/type Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ import kotlinx.coroutines.flow.onCompletion
5151import kotlinx.coroutines.flow.onEach
5252import kotlinx.coroutines.isActive
5353import kotlinx.coroutines.launch
54- import kotlinx.coroutines.yield
5554import kotlinx.serialization.ExperimentalSerializationApi
5655import kotlinx.serialization.Serializable
5756import kotlinx.serialization.encodeToString
@@ -122,7 +121,6 @@ internal constructor(
122121 functionCallHandler : ((FunctionCallPart ) -> FunctionResponsePart )? = null,
123122 enableInterruptions : Boolean = false,
124123 ) {
125-
126124 val context = firebaseApp.applicationContext
127125 if (
128126 ContextCompat .checkSelfPermission(context, RECORD_AUDIO ) != PackageManager .PERMISSION_GRANTED
@@ -203,7 +201,7 @@ internal constructor(
203201 )
204202 }
205203 ?.let { emit(it.toPublic()) }
206- yield ( )
204+ delay( 0 )
207205 }
208206 }
209207 .onCompletion { stopAudioConversation() }
You can’t perform that action at this time.
0 commit comments