Skip to content

Commit 92a9047

Browse files
authored
refactor: add @_unsafeInheritExecutor and @inlinable to trace method (#417)
1 parent 17f4cd6 commit 92a9047

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Sources/_Helpers/SupabaseLogger.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ extension SupabaseLogger {
178178
}
179179

180180
@inlinable
181+
@discardableResult
182+
@_unsafeInheritExecutor
181183
package func trace<R>(
182184
using logger: (any SupabaseLogger)?,
183185
@_inheritActorContext _ operation: @Sendable () async throws -> R,

Sources/_Helpers/TaskLocalHelpers.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
import Foundation
99

1010
extension TaskLocal where Value == JSONObject {
11+
@inlinable
1112
@discardableResult
12-
@inlinable package func withValue<R>(
13+
@_unsafeInheritExecutor
14+
package func withValue<R>(
1315
merging valueDuringOperation: Value,
1416
@_inheritActorContext operation: @Sendable () async throws -> R,
1517
file: String = #fileID,

0 commit comments

Comments
 (0)