Protocolswift-metrics 2.6.1CoreMetrics
TimerHandler
A TimerHandler
represents a backend implementation of a Timer
.
protocol TimerHandler : AnyObject, _SwiftMetricsSendableProtocol
Browse conforming typesThis type is an implementation detail and should not be used directly, unless implementing your own metrics backend. To use the SwiftMetrics API, please refer to the documentation of Timer
.
Implementation requirements
To implement your own TimerHandler
you should respect a few requirements that are necessary so applications work as expected regardless of the selected TimerHandler
implementation.
The
TimerHandler
must be aclass
.