Skip to content

Commit 763e6d8

Browse files
Fix native build
1 parent 65ddcd3 commit 763e6d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: Sources/JavaScriptEventLoop/JSObject+Transferring.swift

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extension JSObject {
1111
///
1212
/// ``JSObject`` itself is not `Sendable`, but ``Transferring`` is `Sendable` because it's
1313
/// intended to be shared across threads.
14+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
1415
public struct Transferring: @unchecked Sendable {
1516
fileprivate struct CriticalState {
1617
var continuation: CheckedContinuation<JavaScriptObjectRef, Error>?
@@ -70,6 +71,7 @@ extension JSObject {
7071
/// let canvas = try await transferring.receive()
7172
/// }
7273
/// ```
74+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
7375
public func receive(isolation: isolated (any Actor)? = #isolation, file: StaticString = #file, line: UInt = #line) async throws -> JSObject {
7476
#if compiler(>=6.1) && _runtime(_multithreaded)
7577
swjs_request_transferring_object(

0 commit comments

Comments
 (0)