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 c58d0a7 commit 11ec6bbCopy full SHA for 11ec6bb
Examples/SyncUps/SyncUps/Dependencies/SpeechRecognizer.swift
@@ -48,7 +48,7 @@ extension SpeechClient: DependencyKey {
48
officia deserunt mollit anim id est laborum.
49
"""
50
var text = ""
51
- while true {
+ while !finalText.isEmpty {
52
let word = finalText.prefix { $0 != " " }
53
try await Task.sleep(for: .milliseconds(word.count * 50 + .random(in: 0...200)))
54
finalText.removeFirst(word.count)
0 commit comments