summaryrefslogtreecommitdiff
path: root/DomainDig/LookupRuntime.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-22 01:20:47 -0500
committerChristian Cleberg <[email protected]>2026-04-22 01:20:47 -0500
commit36ea668d7fc9070770973b0bc329f4319bf43cab (patch)
tree04525d5420c0df84c918b27f8ac059cf14b92fa9 /DomainDig/LookupRuntime.swift
parent3846dc2f5dee69fc4ffbc052009a60e17d60e36b (diff)
downloaddomain-dig-36ea668d7fc9070770973b0bc329f4319bf43cab.tar.gz
domain-dig-36ea668d7fc9070770973b0bc329f4319bf43cab.tar.bz2
domain-dig-36ea668d7fc9070770973b0bc329f4319bf43cab.zip
feat(v2​.6​.0): refine ​UI, density, and usability
• add compact/comfortable density modes • implement collapsible sections and sticky summary header • improve visual status indicators and copy actions • refine watchlist and history UX with swipe actions • reorganize settings and improve empty states • add subtle animations and accessibility improvements
Diffstat (limited to 'DomainDig/LookupRuntime.swift')
-rw-r--r--DomainDig/LookupRuntime.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/DomainDig/LookupRuntime.swift b/DomainDig/LookupRuntime.swift
index b70a134..08ea122 100644
--- a/DomainDig/LookupRuntime.swift
+++ b/DomainDig/LookupRuntime.swift
@@ -58,6 +58,13 @@ actor LookupRuntime {
private var inFlight: [RequestKey: Task<CachedPayload, Never>] = [:]
private var nextAllowedAt: [RateLimitBucket: Date] = [:]
+ func clearCache() {
+ cache.removeAll()
+ inFlight.values.forEach { $0.cancel() }
+ inFlight.removeAll()
+ nextAllowedAt.removeAll()
+ }
+
func dns(domain: String) async -> CachedLookupResult<ServiceResult<[DNSSection]>> {
await execute(
key: .domain(domain, .dns),