This commit is contained in:
John Estropia
2026-07-15 11:50:43 +09:00
parent 7db1cfecfb
commit 890e150b95
135 changed files with 2895 additions and 2526 deletions
+14 -10
View File
@@ -139,15 +139,6 @@ internal enum Internals {
return try ObjectiveC.autoreleasepool(invoking: closure)
}
@inline(__always)
internal static func autoreleasepool<T, E>(
_ closure: () throws(E) -> T
) throws(E) -> T {
return try ObjectiveC.autoreleasepool(invoking: closure)
}
@inline(__always)
internal static func withCheckedThrowingContinuation<T>(
function: String = #function,
@@ -160,6 +151,17 @@ internal enum Internals {
)
}
#if compiler(>=27)
@inline(__always)
internal static func autoreleasepool<T, E>(
_ closure: () throws(E) -> T
) throws(E) -> T {
return try ObjectiveC.autoreleasepool(invoking: closure)
}
@inline(__always)
internal static func withCheckedThrowingContinuation<T, E>(
function: String = #function,
@@ -172,10 +174,12 @@ internal enum Internals {
)
}
#endif
@inline(__always)
internal static func mainActorImmediate(
_ body: @escaping @MainActor () -> Void
_ body: @escaping @MainActor @Sendable () -> Void
) {
if #available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, *) {