You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Concurrency] Include more pieces of Concurrency in Embedded (AsyncStream, continuations)
We have been only including a subset of files and functionality on Embedded Concurrency, let's instead include all the
source files, and have a fine grained opt out on things that don't yet work. Namely, this is still avoiding clocks, task
sleeping and custom executors.
Add a test for AsyncStream and continuations on Embedded Concurrency.
@@ -79,7 +78,11 @@ internal final class CheckedContinuationCanary: @unchecked Sendable {
79
78
// Log if the continuation was never consumed before the instance was
80
79
// destructed.
81
80
if _continuationPtr.pointee !=nil{
81
+
#if !$Embedded
82
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")
83
+
#else
84
+
fatalError("SWIFT TASK CONTINUATION MISUSE")
85
+
#endif
83
86
}
84
87
}
85
88
}
@@ -120,7 +123,6 @@ internal final class CheckedContinuationCanary: @unchecked Sendable {
120
123
/// you can replace one with the other in most circumstances,
0 commit comments