Skip to content

Commit e3f69ce

Browse files
committed
Fixed deprecations
1 parent dfb4f51 commit e3f69ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WWDC/SharePlayManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class SharePlayManager: ObservableObject {
5050
self.canStartSharePlay = newValue
5151
}.store(in: &cancellables)
5252

53-
let task = detach {
53+
let task = Task.detached {
5454
for await session in WatchWWDCActivity.sessions() {
5555
self.cancellables.removeAll()
5656

@@ -85,7 +85,7 @@ final class SharePlayManager: ObservableObject {
8585

8686
let activity = WatchWWDCActivity(with: session)
8787

88-
async {
88+
Task {
8989
let result = await activity.prepareForActivation()
9090

9191
switch result {

0 commit comments

Comments
 (0)