itshan retweeted
DispatchSemaphore allows us to manage parallelism in GCD: we call wait() and signal() on the semaphore to block the thread (until a slot is available), then release the slot and allow another parallel job.
A semaphore simply keeps count of these parallel ‘slots’. You choose how many when you create it, e.g. DispatchSemaphore(value: 2). This is your ‘concurrency limit’.
Blocking with wait() in the for url in urls loop happens on the background thread, but be careful about using these on main. We use a DispatchGroup and notify(queue: .main) to signal on the main thread once all the work is complete.
Never wait() on the main thread, because it freezes your UI until someone calls signal(). If that signal() is itself waiting to run on the main thread, you’re deadlocked.
blog.jacobstechtavern.com/p/…
itshan retweeted
One Word : Insane
Hot reloading with Xcode shown by @kabiroberai his tools in beta
#swiftbharat @swiftbharat
itshan retweeted
Announcing Swift 6.4.3, a maintenance release with bug fixes across multiple areas including the compiler, Linux backtraces, Foundation on Windows, and Swift Testing. Read more: forums.swift.org/t/announcin…
Baguette performance over Tailscale just got a massive boost. Honestly, it feels just like using a local device now.
github.com/tddworks/baguette
Let's build components, not layers by Tom Hombergs @ Spring I/O 2022 youtu.be/-VmhytwBZVs?si=GfGZ… via @YouTube
153
itshan retweeted
⚡️ Your fast track from app idea to first users.
Build for iOS and Android with Kotlin Multiplatform, without the hassle.
Your AI agent uses the new Kotlin Toolchain to handle the workflow through one CLI, from project setup to TestFlight.
Watch it in action 👇



























