StackOverflow Questions for Tag: mainactor

naljin
naljin

Reputation: 635

How to Migrate a UIControl Publisher to Swift 6 Without Concurrency Warnings

Score: 2

Views: 92

Answers: 1

Read More
DaveHD
DaveHD

Reputation: 99

Custom snap gesture in visionOS

Score: 1

Views: 125

Answers: 1

Read More
Son Le
Son Le

Reputation: 314

Using newBackgroundContext in @MainActor class

Score: 2

Views: 57

Answers: 1

Read More
esbenr
esbenr

Reputation: 1518

Updating to XCode 16.2 produces a lot of concurrency warnings

Score: 0

Views: 182

Answers: 0

Read More
Shuji Fukumoto
Shuji Fukumoto

Reputation: 127

What is the best solution for background task using Swift async, await, @MainActor

Score: 8

Views: 12442

Answers: 1

Read More
Psylocke
Psylocke

Reputation: 565

How to share global constant properties?

Score: 0

Views: 247

Answers: 1

Read More
matt
matt

Reputation: 536028

asyncDetached falling back into main thread after MainActor call

Score: 14

Views: 2382

Answers: 6

Read More
NicolasBrunner
NicolasBrunner

Reputation: 203

How to initialize Swift class annotated @MainActor for XCTest, SwiftUI Previews, etc

Score: 8

Views: 2794

Answers: 2

Read More
Rakshith Nandish
Rakshith Nandish

Reputation: 649

MainActor in Task

Score: 4

Views: 2207

Answers: 2

Read More
Reinhard Männer
Reinhard Männer

Reputation: 15257

Don't understand SCNSceneRenderer delegate data race warning

Score: 0

Views: 75

Answers: 1

Read More
soleil
soleil

Reputation: 13135

Correct usage of @Observable and @MainActor

Score: 1

Views: 1172

Answers: 2

Read More
Yotam
Yotam

Reputation: 10495

Cannot initialize MainActor isolated class from another

Score: 0

Views: 505

Answers: 1

Read More
wolverine
wolverine

Reputation: 309

In swift, do we need "@MainActor in" inside the closure of an other object written inside ViewController?

Score: 1

Views: 1269

Answers: 1

Read More
kAiN
kAiN

Reputation: 2793

@Observable vs @MainActor return Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context

Score: 5

Views: 1644

Answers: 0

Read More
Sebastian Kirsche
Sebastian Kirsche

Reputation: 883

Concurrency problem when only parts of a class are annotated with @MainActor

Score: 1

Views: 430

Answers: 1

Read More
Joris
Joris

Reputation: 6306

Sign in with Apple MainActor issues

Score: 4

Views: 404

Answers: 1

Read More
user21666271
user21666271

Reputation:

Swift compiler Warning Converting function value of type @MainActor loses global actor MainActor

Score: 0

Views: 499

Answers: 1

Read More
Daniel Amarante
Daniel Amarante

Reputation: 805

Why is the following code not running on the main thread?

Score: 1

Views: 230

Answers: 1

Read More
Saad Qureshi
Saad Qureshi

Reputation: 738

How to initialise a custom WKWebView view without having to explicitly trigger the main thread (@MainActor)

Score: 1

Views: 155

Answers: 0

Read More
Plato
Plato

Reputation: 691

@MainActor isn't forcing compiler check when mutating @Observable property on background thread

Score: 1

Views: 238

Answers: 1

Read More
PreviousPage 1Next