Capture of 'completion' with non-sendable type '(Timeline) -> ()' in a @Sendable closure
There's probably a way of silencing this warning somehow (not sure exactly how) but there's no information what thread getTimeline is executed on, and how safe it is to silence the concurrency warnings. Also, @MainActor isn't helping.
Yes, seems like it hasn’t been update so far — completion has to be @Sendable. Right now you can try @preconcurrency either on import or protocol conformance.
If someone comes here with the same problem: for now and before Xcode 16 comes out, I set Strict Concurrency Checks to Targeted just for the widgets, hoping I won't break anything with bad concurrency.
Doesn't work because those are protocol methods and their completion argument should be declared @Sendable in the protocol definition, not here. The compiler gives a warning on your solution and rightly so.