We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac89dc commit fafcd3eCopy full SHA for fafcd3e
firebase-ai/src/main/kotlin/com/google/firebase/ai/type/LiveSession.kt
@@ -390,7 +390,7 @@ internal constructor(
390
}
391
392
393
- .launchIn(CoroutineScope(Dispatchers.IO))
+ .launchIn(scope)
394
395
396
/**
@@ -401,7 +401,7 @@ internal constructor(
401
* Launched asynchronously on [scope].
402
*/
403
private fun listenForModelPlayback(enableInterruptions: Boolean = false) {
404
- CoroutineScope(Dispatchers.IO).launch {
+ scope.launch {
405
while (isActive) {
406
val playbackData = playBackQueue.poll()
407
if (playbackData == null) {
0 commit comments