Skip to content

Commit f300164

Browse files
authored
[Concurrency] Improve crash message on continuation misuse (#75613)
1 parent 99daf88 commit f300164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/CheckedContinuation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ internal final class CheckedContinuationCanary: @unchecked Sendable {
7979
// Log if the continuation was never consumed before the instance was
8080
// destructed.
8181
if _continuationPtr.pointee != nil {
82-
logFailedCheck("SWIFT TASK CONTINUATION MISUSE: \(function) leaked its continuation!\n")
82+
logFailedCheck("SWIFT TASK CONTINUATION MISUSE: \(function) leaked its continuation without resuming it. This may cause tasks waiting on it to remain suspended forever.\n")
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)