Skip to content

Commit

Permalink
Fixed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
insidegui committed Jul 1, 2021
1 parent dfb4f51 commit e3f69ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WWDC/SharePlayManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class SharePlayManager: ObservableObject {
self.canStartSharePlay = newValue
}.store(in: &cancellables)

let task = detach {
let task = Task.detached {
for await session in WatchWWDCActivity.sessions() {
self.cancellables.removeAll()

Expand Down Expand Up @@ -85,7 +85,7 @@ final class SharePlayManager: ObservableObject {

let activity = WatchWWDCActivity(with: session)

async {
Task {
let result = await activity.prepareForActivation()

switch result {
Expand Down

0 comments on commit e3f69ce

Please sign in to comment.