Other Actors
The following actors are available globally.
-
A mutual-exclusion lock keyed by ID: callers asking for the same key wait their turn, and callers with different keys don’t affect each other.
See moreDeclaration
Swift
actor KeyedAsyncLock -
Declaration
Swift
actor ActivePhoneCalls -
Attempt counts and lockouts for
AuthRateLimiter, kept in memory. Swiftarr runs as a single instance (UserCacherelies on this too), so there’s no need to share this state through Redis. A restart clears every count and lockout.Being an actor, each call runs to completion before the next one starts, so concurrent requests each see the count left by the one before.
See moreDeclaration
Swift
actor AuthRateLimitStore
View on GitHub
Other Actors Reference