mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-09-10 03:41:47 +02:00
WIP
This commit is contained in:
+14
-10
@@ -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, *) {
|
||||
|
||||
Reference in New Issue
Block a user