Avatar
@swift-5.9.2 // The Swift Programming Language // https://docs.swift.org/swift-book print("Hello, world!") class TaskRunner { private(set) var count = 0 func callAsFunction() async { Task { count += 1 print(count) } } } let runner = TaskRunner() await runner()