- a special actor that ensures that work is executed on the main thread
- documentation definition:
- βA singleton actor whose executor is equivalent to the main dispatch queueβ
- Unlike regular actors, which create separate instances,
MainActor
is a single, shared instance across the entire application - The
MainActor
executor is tied to the main dispatch queue (DispatchQueue.main
)