Skip to content

Commit 62145c0

Browse files
author
wangzhizhou
committed
add the @preconcurrency attribute before func shutdown
1 parent 0050269 commit 62145c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/APNS/APNSClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public final class APNSClient<Decoder: APNSJSONDecoder, Encoder: APNSJSONEncoder
125125
/// - Parameters:
126126
/// - queue: The queue on which the callback is invoked on.
127127
/// - callback: The callback that is invoked when everything is shutdown.
128-
public func shutdown(queue: DispatchQueue = .global(), callback: @Sendable @escaping (Error?) -> Void) {
128+
@preconcurrency public func shutdown(queue: DispatchQueue = .global(), callback: @Sendable @escaping (Error?) -> Void) {
129129
self.httpClient.shutdown(callback)
130130
}
131131

0 commit comments

Comments
 (0)