This week we will talk about task yielding and debouncing. Swift concurrency language features provide us with two simple but very powerful functions: yield and sleep. We will try to learn how and when to use them.
Comments
Log in with your Bluesky account to leave a comment
There is debounce written for swift concurrency in the Swift Async Algorithms package. Sadly it’s hard to use on keyboard input as it needs an async stream/sequence.
Comments
https://www.swift.org/blog/swift-async-algorithms/