SwiftactorHomeKitEvents
ExpiringAsyncCache
actor HomeKitEvents.ExpiringAsyncCache
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolHomeKitEvents.AsyncCache
- protocolSwift.Actor
Members 15
- deinit
deinit - field
var $defaultActor: Builtin.DefaultActorStorage+0x10 - field
var cache: [A : (value: B, expirationDate: Foundation.Date)]+0x78 - field
let expirationDuration: Double+0x70 - field
var expirationTask: Task<(), Error>? - func
clear(Set<A>) -> () - func
clear(A) -> () - func
clearAll() -> () - func
get(Set<A>) -> [A : B] - func
set(_: B, key: A) -> () - init
HomeKitEvents.ExpiringAsyncCache.__allocating_init(expirationDuration: Double) -> HomeKitEvents.ExpiringAsyncCache<A, B> - subscript
subscript.getter : (A) -> B? - typealias
typealias Key = A - typealias
typealias Value = B - var
var unownedExecutor: UnownedSerialExecutor { get }
Header
actor ExpiringAsyncCache<A, B> where A: Swift.Hashable { let expirationDuration: Swift.Double var cache: [A : (value: B, expirationDate: Foundation.Date)] var expirationTask: Swift.Task<(), any Swift.Error>? init(expirationDuration: Swift.Double) var unownedExecutor: Swift.UnownedSerialExecutor { get } func get(_: Swift.Set<A>) -> [A : B] func set(_: B, key: A) func clear(_: Swift.Set<A>) func clear(_: A) func clearAll() subscript(_: A) -> B? { get } deinit }