Skip to content

Commit ff0833c

Browse files
committed
Callbacks are all sendable by nature, make it explicit
1 parent d23ab76 commit ff0833c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Testing/ABI/EntryPoints/Library.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private import _TestingInternals
1414
@_spi(Experimental) @_spi(ForToolsIntegrationOnly)
1515
public struct Library: Sendable {
1616
/* @c */ fileprivate struct Record {
17-
typealias EntryPoint = @convention(c) (
17+
typealias EntryPoint = @Sendable @convention(c) (
1818
_ configurationJSON: UnsafeRawPointer,
1919
_ configurationJSONByteCount: Int,
2020
_ reserved: UInt,
@@ -23,14 +23,14 @@ public struct Library: Sendable {
2323
_ completionHandler: CompletionHandler
2424
) -> Void
2525

26-
typealias RecordJSONHandler = @convention(c) (
26+
typealias RecordJSONHandler = @Sendable @convention(c) (
2727
_ recordJSON: UnsafeRawPointer,
2828
_ recordJSONByteCount: Int,
2929
_ reserved: UInt,
3030
_ context: UnsafeRawPointer
3131
) -> Void
3232

33-
typealias CompletionHandler = @convention(c) (
33+
typealias CompletionHandler = @Sendable @convention(c) (
3434
_ exitCode: CInt,
3535
_ reserved: UInt,
3636
_ context: UnsafeRawPointer

0 commit comments

Comments
 (0)