Instance Propertyfwcd.swift-utils 4.6.2Utils
expiryInterval
AsyncLazyExpiring.swift:9let expiryInterval: TimeInterval
let expiryInterval: TimeInterval
import Utils
actor AsyncLazyExpiring<T>
A value that periodically expires and gets re-queried through a supplied getter.
typealias TimeInterval = Double
init(in expiryInterval: TimeInterval = 1.0, wrappedValue getter: @escaping () async throws -> T)
var nextExpiry: Date? { get }
var wrappedValue: T { get async throws }