Franz Busch
franzbusch.bsky.social
Franz Busch
@franzbusch.bsky.social
Swift on Server @Apple
Yeah we should get that over the line. @lukasa.hachyderm.io.ap.brid.gy is working on all the strict concurrency adoption in NIO right now.
November 24, 2024 at 2:39 PM
Yes a third one is setting a task cancellation handler. Throwing a CancellationError is really just one way of indicating that something got cancelled but returning early is also totally fine.
November 18, 2024 at 10:43 AM
If the task is cancelled before or while sleeping the method will throw a `CancellationError`. Now you can ignore the error with `try?` it still means your task supports cancellation.

I hope this cleared things up a bit.
November 18, 2024 at 7:35 AM