mirror of
https://github.com/samsonjs/SJSAssetExportSession.git
synced 2026-04-27 14:57:46 +00:00
Remove unnecessary Task.yield() to fix an intermittent hang
This commit is contained in:
parent
127dbf296b
commit
7440301b15
1 changed files with 0 additions and 1 deletions
|
|
@ -145,7 +145,6 @@ actor SampleWriter {
|
||||||
progressContinuation?.yield(1.0)
|
progressContinuation?.yield(1.0)
|
||||||
|
|
||||||
// Make sure the last progress value is yielded before returning.
|
// Make sure the last progress value is yielded before returning.
|
||||||
await Task.yield()
|
|
||||||
await withCheckedContinuation { continuation in
|
await withCheckedContinuation { continuation in
|
||||||
progressContinuation?.onTermination = { _ in
|
progressContinuation?.onTermination = { _ in
|
||||||
continuation.resume(returning: ())
|
continuation.resume(returning: ())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue