<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stateless-actors-2uba5riyl" -->

---
title: Stateless Actors | daily.dev
description: Explores whether a stateless actor in Swift has any practical value. Covers three main use cases: using an actor as a Sendable, non-MainActor type (e.g.,...
canonical: https://daily.dev/posts/stateless-actors-2uba5riyl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stateless Actors | daily.dev
og:description: Explores whether a stateless actor in Swift has any practical value. Covers three main use cases: using an actor as a Sendable, non-MainActor type (e.g.,...
og:url: https://daily.dev/posts/stateless-actors-2uba5riyl
og:image: https://api.daily.dev/og/posts/2Uba5RiYl.png
og:image:alt: Stateless Actors
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stateless Actors

**[Matt Massicotte](https://daily.dev/sources/massicotte)** · 7 min read · 0 upvotes · 0 comments

## Summary

Explores whether a stateless actor in Swift has any practical value. Covers three main use cases: using an actor as a Sendable, non-MainActor type (e.g., NetworkClient), defining a custom global actor for background work, and using custom executor actors to integrate Swift concurrency with existing queue-based systems like DispatchSerialQueue. Also discusses using actors to serialize access to external state like the file system. Contrasts actor-based approaches with struct + @concurrent alternatives, highlighting trade-offs around serial execution, protocol compatibility, and Sendable requirements. Concludes that stateless actors can be valid but should be used intentionally with a clear rationale.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://massicotte.org/stateless-actors>

## Similar posts on daily.dev

- [Fucking Approachable Swift Concurrency](https://daily.dev/posts/fucking-approachable-swift-concurrency-dmob6pupx) · Hacker News · 0 upvotes · 0 comments
- [Approachable Concurrency in Swift 6.2: A Clear Guide](https://daily.dev/posts/approachable-concurrency-in-swift-6-2-a-clear-guide-srya8fign) · SwiftLee · 1 upvotes · 0 comments
- [An Even Closer Look at Protocols and Global Actors](https://daily.dev/posts/an-even-closer-look-at-protocols-and-global-actors-vi6craiff) · Matt Massicotte · 0 upvotes · 0 comments
- [Swift protocols and the main actor](https://daily.dev/posts/swift-protocols-and-the-main-actor-c2wwa6hx1) · Swift by Sundell · 1 upvotes · 0 comments
- [Where Does Your Swift async Code Actually Run?](https://daily.dev/posts/where-does-your-swift-async-code-actually-run--hyeoiirp4) · Medium · 0 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/stateless-actors-2uba5riyl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stateless Actors","url":"https://daily.dev/posts/stateless-actors-2uba5riyl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stateless-actors-2uba5riyl"},"datePublished":"2026-08-02T07:15:19.143Z","dateModified":"2026-08-02T07:36:09.083Z","description":"Explores whether a stateless actor in Swift has any practical value. Covers three main use cases: using an actor as a Sendable, non-MainActor type (e.g.,...","image":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","thumbnailUrl":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","isAccessibleForFree":true,"articleSection":"Matt Massicotte","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Matt Massicotte","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/massicotte"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stateless-actors-2uba5riyl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Matt Massicotte","item":"https://daily.dev/sources/massicotte"},{"@type":"ListItem","position":3,"name":"Stateless Actors"}]}
```

