Post

SwiftUI之GeometryReader

参考:

'await' in a function that does not support concurrency

1
2
3
4
5
6
7
8
9
func doAsyncWork() async {
    print("Doing async work")
}
func doRegularWork() {
    Task {
        await doAsyncWork()
    }
}
doRegularWork()
This post is licensed under CC BY 4.0 by the author.