Remove unnecessary Task.yield() to fix an intermittent hang

This commit is contained in:
Sami Samhuri 2024-10-19 11:54:09 -07:00
parent 127dbf296b
commit 7440301b15
No known key found for this signature in database

View file

@ -145,7 +145,6 @@ actor SampleWriter {
progressContinuation?.yield(1.0)
// Make sure the last progress value is yielded before returning.
await Task.yield()
await withCheckedContinuation { continuation in
progressContinuation?.onTermination = { _ in
continuation.resume(returning: ())