MainActor object has an async function. Function is called from MainActor SwiftUI View in Task.immediate and the function doesn't encounter any await (it checks a guard statement and returns). Is this functionally equivalent to a simple non-async function?
MainActor object has an async function. Function is called from MainActor SwiftUI View in Task.immediate and the function doesn't encounter any await (it checks a guard statement and returns). Is this functionally equivalent to a simple non-async function?
www.pointfree.co/collections/...
www.pointfree.co/collections/...
I've this (simplified)
struct State: Equatable {
var unsavedChanges = false
// ...
}
(at)Observable
(at)dynamicMemberLookup
(at)MainActor
public final class Store
private(set) public var state: State
// ...
}
An instance […]
I've this (simplified)
struct State: Equatable {
var unsavedChanges = false
// ...
}
(at)Observable
(at)dynamicMemberLookup
(at)MainActor
public final class Store
private(set) public var state: State
// ...
}
An instance […]
Also me: I should keep working on a years-long project to make it easier to avoid using MainActor in this one incredibly esoteric case
Also me: I should keep working on a years-long project to make it easier to avoid using MainActor in this one incredibly esoteric case
https://forums.swift.org/t/actors-conforming-to-protocols-in-default-mainactor-isolation-targets/89821
#SwiftLang
https://forums.swift.org/t/actors-conforming-to-protocols-in-default-mainactor-isolation-targets/89821
#SwiftLang
Swift 6 strict concurrency can still leave a nasty hole when Objective-C APIs take…
#iOSDev #Concurrency #Testing
hackernoon.com/swift-6-gave...
Swift 6 strict concurrency can still leave a nasty hole when Objective-C APIs take…
#iOSDev #Concurrency #Testing
hackernoon.com/swift-6-gave...
クイズ形式でダメなパターンの理解が深まり、これからはXcodeに怒られなくて済みそうです
ありがとうございました🙇♀️
クイズ形式でダメなパターンの理解が深まり、これからはXcodeに怒られなくて済みそうです
ありがとうございました🙇♀️
どこも登壇させてくれそうにないから自分でやるスタイル!
20時から!
ios-torikoboshi.connpass.com/event/407847/
どこも登壇させてくれそうにないから自分でやるスタイル!
20時から!
ios-torikoboshi.connpass.com/event/407847/
```swift
@MainActor
@Observable
final class ATProtoOAuthService: NSObject, ASWebAuthenticationPresentationContextProviding {
```
```swift
@MainActor
@Observable
final class ATProtoOAuthService: NSObject, ASWebAuthenticationPresentationContextProviding {
```
Yes I save typing the MainActor attribute.
But I need to look at the quick help to know what a method in an extension in another file is doing all the time.
Yes I save typing the MainActor attribute.
But I need to look at the quick help to know what a method in an extension in another file is doing all the time.
#swift #concurrency #AVFoundation
#swift #concurrency #AVFoundation