MCPcopy Create free account
hub / github.com/altic-dev/FluidVoice / enqueue

Method enqueue

Sources/Fluid/Analytics/AnalyticsService.swift:238–244  ·  view source on GitHub ↗
(_ event: [String: Any])

Source from the content-addressed store, hash-verified

236 }
237
238 private func enqueue(_ event: [String: Any]) {
239 self.queue.append(event)
240 if self.queue.count > self.maxQueuedEvents {
241 // Drop oldest.
242 self.queue.removeFirst(self.queue.count - self.maxQueuedEvents)
243 }
244 }
245
246 private func startFlushLoopIfNeeded() {
247 // Only run a background flush loop when enabled and configured.

Callers 1

captureMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected