Software Dev

The Swift Concurrency Roadmap

The Swift Concurrency Manifesto has now produced Swift Concurrency Roadmap (pull request). So that’s progress.

Our goal is to make concurrent programming in Swift convenient, efficient, and safe.

Once implemented, this roadmap will let you write this mess…

This way. πŸ‘

The roadmap contains “nurseries” for creating child tasks πŸ˜†, and something called “actor isolation”, starting with “basic actor isolation”. I can’t help but picture a bad actor sitting around his apartment in L.A. πŸ€·πŸ»β€β™‚οΈ

There’s also a solid glossary of what these terms really mean.

Via iOS Dev Weekly.

Software Dev

Apple Thread Utils

Apple has a really nice utility straightforwardly called the Main Thread Checker. It detect uses of APIs on a background thread that really should be on the main thread.

Updating UI on a thread other than the main thread is a common mistake that can result in missed UI updates, visual defects, data corruptions, and crashes.

And someone has put together a page documenting how to configure the Main Thread Checker for your own specific needs. It’s straightforwardly called Configuring the Main Thread Checker.

πŸ‘‰ Configuring the Main Thread Checker

Enjoy getting rid of some flakey code in your app! Via iOS Dev Weekly.

P.S. There’s another utility from Apple called Thread Sanitizer, to “Audit threading issues in your code”. πŸ€·πŸ»β€β™‚οΈ

The Scheme Editor's Arguments Tab