#DispatchQueue
이야 나 objc 다 까먹었네? DispatchQueue 생각이 안나서 얼타고 있음.
September 5, 2025 at 2:07 AM
As smart and bulky our IDE's become and after so many years of working in Xcode, it still doesn't recognise this is my "go to" DispatchQueue 😂

`DispatchQueue.main.asyncAfter(wallDeadline: .now() + 0.3)` {
// Do something funky!
}`

#SwiftUI, #buildinpublic
March 25, 2025 at 10:17 AM
When you use DispatchQueue in Swift Concurrency it’s most likely wrong or unnecessary. DispatchQueue is the old way of doing async work. It works but you should avoid it. Not sure how to explain it better 😅
June 17, 2025 at 12:20 AM
Turns out std::async creates a new thread in every call on most platforms. So I've created a standalone, simple and very nice to use #DispatchQueue / #ThreadPool implementation to avoid thread creation every frame in my #ECS + #SQL #gameengine 🚀

github.com/gilzoide/cpp...

#C++ #gamedev
GitHub - gilzoide/cpp-dispatch-queue: Dispatch Queue / Thread Pool implementation for C++11
Dispatch Queue / Thread Pool implementation for C++11 - gilzoide/cpp-dispatch-queue
github.com
February 14, 2025 at 11:05 AM
Apparently I had to use DispatchQueue with a DispatchWorkItem instead of the newer asynchronous SwiftUI syntax. The newer form wasn't working properly in macOS when I tested. So here is the code with the older (and it seems more reliable) way of doing this:
November 27, 2025 at 5:29 PM
Infelizmente std::async cria um thread novo a cada chamada 🫠 Então eu criei uma implementação de #DispatchQueue / #ThreadPool que é bem simples, mas muito bacana de usar, pra evitar criação de threads todo frame na minha #gameengine de #ECS + #SQL 🚀

github.com/gilzoide/cpp...

#gamedev #C++
GitHub - gilzoide/cpp-dispatch-queue: Dispatch Queue / Thread Pool implementation for C++11
Dispatch Queue / Thread Pool implementation for C++11 - gilzoide/cpp-dispatch-queue
github.com
February 14, 2025 at 11:08 AM
i was learning swift at the time and loved the DispatchQueue system, how amazingly easy to use the API is, how it handles serial/multithreaded queues, how it has native language support so it's integrated nicely into the xcode debugger

and i thought... why not build that... but in a much worse way!
January 11, 2025 at 8:41 AM
Discover how dispatchQueue.sync can cause deadlocks and learn techniques to avoid them if you're not ready to use Swift Concurrency yet. Read more: https://www.donnywals.com/understanding-how-dispatchqueue-sync-can-cause-deadlocks/
May 8, 2025 at 11:19 AM
🍎 Free Swift + iOS Cursor Rules

Fixes the 4 AI mistakes that ship crashes: class instead of struct, DispatchQueue in async context, ObservableObject leaks, silent network errors.

https://gist.github.com/oliviacraft/d9baf0746c58b4fa8380ec750bf8c383

#Swift #iOS #CursorIDE
April 27, 2026 at 4:01 PM
Swift devs are sleeping on CLAUDE.md.

AI assistants default to 2018 Swift in 2026 — DispatchQueue inside async functions, @Published view models on background threads, force-unwrapped URL(string:)!, retain cycles in Task closures.

10 rules to fix it ↓
May 1, 2026 at 4:04 PM
Simplified:

public class Log {
private let queue = DispatchQueue(label:"log")

public func log( _ msg: String ) {
queue.async {
writeStringToFile(msg)
}
}

Log entries get written in their entirety and in order† without locking up the current thread.

†For each calling thread
January 12, 2025 at 8:20 PM
💡 From an execution model perspective, Actor is similar to a compile-time safe serial DispatchQueue.

Want to integrate Actor with legacy APIs like Combine or Core Data? You can use a custom SerialExecutor to make them share the same queue. 🧵👇
December 11, 2025 at 1:32 PM
If you have mutable stated, shared over isolation domains that can't live on the MainActor and you can await to access it. Actors might be a good option. Then they also have cool tricks, like using DispatchQueue which makes it easy to use queue based APIs
March 17, 2026 at 9:30 AM
I’ve known a few of these guys. One was really bad. He once gave a talk to the team that we should never use DispatchQueue. Then said we should use RxSwift.

It runs sequences which are scheduled on DispatchQueues. He also put everything on main with blocking code all the time.
February 26, 2025 at 1:15 AM
It shows how to simulate a hang in SwiftUI, detect it using App Hangs Detection and Instruments, and fix it by moving computations to a background thread using DispatchQueue.

#ios #iosdevelopment #swift #swiftui #swiftlang #UIHangs #AppHangsDetection #Instruments
April 18, 2025 at 7:30 AM
Parts 1-2/2 — EFTA02367480.jpg
#epsteinweb #efta02367480
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
April 6, 2026 at 8:36 PM
I've been using the Sonnet integration in Xcode so that I can tell it to build the boring to construct bits of the UI and also tell it to port my older code base to swift 6.x idioms (Task instead of DispatchQueue, await async instead of callbacks, etc) and it mostly just works.
December 30, 2025 at 12:39 AM
On Windows, there's still a delay of up to 15ms between "typesetting completed" and page drawing. I had hoped the issue with DispatchQueue/MainRunLoop integration had been solved by this commit, but it doesn't look like it: github.com/ktraunmuelle...
I need to try something else.
February 1, 2026 at 9:32 AM
Project: facebook/react
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150

function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...

SVG: dark, light
December 22, 2025 at 3:38 AM
Project: facebook/react
File: packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js:123

function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEv...

SVG: dark, light
October 22, 2025 at 6:44 PM
Project: facebook/react
File: packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js:287

function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...

SVG: dark, light
September 30, 2025 at 3:42 AM
Project: facebook/react
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150

function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...

SVG: dark, light
August 17, 2025 at 10:39 AM
Super interesting, without Parallelism I got a time of 10.6 seconds. After using DispatchQueue in Swift and running each potential path in parallel, I got it down to 1.6 seconds.
December 7, 2024 at 9:26 AM
Is there a way to get something like a sequential DispatchQueue in Swift on Android (Kotlin)?

It seems a bit odd to have to block on a mutex *inside* a coroutine to ensure they run in order, instead of somehow restricting the coroutine to wait for the previous one to complete its run […]
Original post on chaos.social
chaos.social
February 17, 2025 at 11:58 AM