Avatar
Avatar
omochimetaru
@swift-5.10.1 -strict-concurrency=complete class R { func foo() async {} } @MainActor func main() async { Task { @MainActor () in let r = R() await r.foo() } } (edited)
swift510 BOT 8/8/2024 2:00 PM
<stdin>:7:11: warning: passing argument of non-sendable type 'R' outside of main actor-isolated context may introduce data races await r.foo() ^ <stdin>:1:7: note: class 'R' does not conform to the 'Sendable' protocol class R { func foo() async {} } ^