Skip to content

Commit

Permalink
swift async functions post updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mecid committed Nov 14, 2024
1 parent 24d158e commit 376452c
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ struct ContentView: View {
var body: some View {
Text("Hello")
.task {
// runs on the main thread
boo()
}
.task {
// runs on the cooperative thread pool
await foo()
}
}
Expand All @@ -87,11 +85,9 @@ struct ContentView: View {
var body: some View {
Text("Hello")
.task {
// runs on the main thread
boo()
}
.task {
// runs on the cooperative thread pool
await foo()
}
}
Expand Down

0 comments on commit 376452c

Please sign in to comment.