@@ -280,11 +280,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
280
280
using: . main
281
281
) { [ self ] task in
282
282
283
- let handle = relayCacheTracker. updateRelays { result in
283
+ nonisolated ( unsafe ) let handle = relayCacheTracker. updateRelays { result in
284
284
task. setTaskCompleted ( success: result. isSuccess)
285
285
}
286
286
287
- task. expirationHandler = {
287
+ task. expirationHandler = { @ Sendable in
288
288
handle. cancel ( )
289
289
}
290
290
@@ -303,12 +303,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
303
303
forTaskWithIdentifier: BackgroundTask . privateKeyRotation. identifier,
304
304
using: . main
305
305
) { [ self ] task in
306
- let handle = tunnelManager. rotatePrivateKey { [ self ] error in
306
+ nonisolated ( unsafe ) let handle = tunnelManager. rotatePrivateKey { [ self ] error in
307
307
scheduleKeyRotationTask ( )
308
308
task. setTaskCompleted ( success: error == nil )
309
309
}
310
310
311
- task. expirationHandler = {
311
+ task. expirationHandler = { @ Sendable in
312
312
handle. cancel ( )
313
313
}
314
314
}
@@ -325,12 +325,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
325
325
forTaskWithIdentifier: BackgroundTask . addressCacheUpdate. identifier,
326
326
using: . main
327
327
) { [ self ] task in
328
- let handle = addressCacheTracker. updateEndpoints { [ self ] result in
328
+ nonisolated ( unsafe ) let handle = addressCacheTracker. updateEndpoints { [ self ] result in
329
329
scheduleAddressCacheUpdateTask ( )
330
330
task. setTaskCompleted ( success: result. isSuccess)
331
331
}
332
332
333
- task. expirationHandler = {
333
+ task. expirationHandler = { @ Sendable in
334
334
handle. cancel ( )
335
335
}
336
336
}
0 commit comments