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. 🧵👇
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. 🧵👇
#ios #iosdevelopment #swift #swiftui #swiftlang #UIHangs #AppHangsDetection #Instruments
#ios #iosdevelopment #swift #swiftui #swiftlang #UIHangs #AppHangsDetection #Instruments
It runs sequences which are scheduled on DispatchQueues. He also put everything on main with blocking code all the time.
It runs sequences which are scheduled on DispatchQueues. He also put everything on main with blocking code all the time.
#epsteinweb #efta02367480
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02367480
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
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
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
I need to try something else.
I need to try something else.
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js:123
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEv...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js:123
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEv...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js:287
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js:287
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
File: packages/react-dom-bindings/src/events/plugins/SelectEventPlugin.js:150
function extractEvents( dispatchQueue: DispatchQueue, domEventName: DOMEvent...
SVG: dark, light
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 […]
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 […]
`DispatchQueue.main.asyncAfter(wallDeadline: .now() + 0.3)` {
// Do something funky!
}`
#SwiftUI, #buildinpublic
`DispatchQueue.main.asyncAfter(wallDeadline: .now() + 0.3)` {
// Do something funky!
}`
#SwiftUI, #buildinpublic
github.com/gilzoide/cpp...
#gamedev #C++
github.com/gilzoide/cpp...
#gamedev #C++
github.com/gilzoide/cpp...
#C++ #gamedev
github.com/gilzoide/cpp...
#C++ #gamedev
and i thought... why not build that... but in a much worse way!
and i thought... why not build that... but in a much worse way!
#iOS #Swift #GCD #iOSDev #SwiftConcurrency #DispatchQueue #OperationQueue #iOSInterview #Actor #AsyncAwait #MainActor #Sendable #TechInterview #MobileDevelopment #SoftwareEngineering
#iOS #Swift #GCD #iOSDev #SwiftConcurrency #DispatchQueue #OperationQueue #iOSInterview #Actor #AsyncAwait #MainActor #Sendable #TechInterview #MobileDevelopment #SoftwareEngineering
Na ja, immerhin bin ich jetzt weiter und kenne nun so manche Kuriosität.
Bspw. gibt der Initializer der DispatchQueue Class ein Object zurück, das abhängig von den Werten (!) der übergebenen Parametern (also nicht mal Overloading) true für den Ausdruck "newQueue is DispatchSerialQueue" …
2/3
Na ja, immerhin bin ich jetzt weiter und kenne nun so manche Kuriosität.
Bspw. gibt der Initializer der DispatchQueue Class ein Object zurück, das abhängig von den Werten (!) der übergebenen Parametern (also nicht mal Overloading) true für den Ausdruck "newQueue is DispatchSerialQueue" …
2/3
async/await over callbacks. Actors over DispatchQueue. @MainActor for UI. No force unwraps. Privacy strings that ship.
https://gist.github.com/oliviacraft/09dc3cb60c975a35cfb68196ca6b379d
#Swift #iOS #ClaudeAI
async/await over callbacks. Actors over DispatchQueue. @MainActor for UI. No force unwraps. Privacy strings that ship.
https://gist.github.com/oliviacraft/09dc3cb60c975a35cfb68196ca6b379d
#Swift #iOS #ClaudeAI