Trending

#mainactor

Latest posts tagged with #mainactor on Bluesky

Latest Top
Trending

Posts tagged #mainactor

I hate it when the #mainactor of a show becomes the story. I always skip those episodes.

It happens a lot on #Murdochmysteries

This is why I have a hard time watching #Absentia season 1: the lead actor is all over the plot๐Ÿ˜ค

0 0 1 0
Post image

I got buried in #concurrency and had to stop. ๐Ÿ˜…

The goal was to avoid using the `nonisolated` keyword in the context where #MainActor is the default isolation, but so far, I haven't found a better solution. ๐Ÿค”

Here is the first response from the completed request! ๐ŸŽ‰

1 0 0 0
Post image

It's taking longer than I thought, but I want to implement strict concurrency responsibly. ๐Ÿ•’๐Ÿง

At some points, it works with a project that has default isolation set on #MainActor. This is a default setting for #Xcode26, so I have to follow this rule. ๐Ÿš€

#BuildInPublic #Swift

2 1 0 0
Post image

So it begins... ๐ŸŒŸ

Until now, the package had #MainActor default isolation. This was intentional to gain a clear understanding of where the #Sendable declaration is necessary.

Now, it's time to make this package truly thread-safe! ๐Ÿš€

#BuildInPublic #SwiftPackage #concurrency

3 1 0 0
Post image

Previous problems with Swift Concurrency, in my opinion, stemmed from originally overlooking this crucial assumption. ๐Ÿ’ญ

Now we can set that Default Actor Isolation will rely on #MainActor. This means our entire app will work on the main thread by default. โœจ

2/5

0 0 1 0

I gave it a quick shot in the morning, and once I passed only local variables to the call, the method stopped running on #MainActor. To be sure, I created an assert for my background handler and called it first thing in all methods. I definitely need to read more on #concurrency. ๐Ÿ˜…
#Swift #Coding

3 0 2 0

Interesting, I've wrapped some code in `Task { @MainActor in /* code */ }` because I wanted to hide the concurrency warning, and now my app is way faster. I've no idea how, but I'm happy that this is the effect ๐Ÿคฃ #swiftlang #concurrency #swift #mainactor #task #indiedev

2 0 0 0