Add template to check if a timer is expired
This commit is contained in:
parent
4e333f32b4
commit
85e4d19e59
|
@ -77,3 +77,8 @@ proc RaftCreateTimer*[TimerDurationType](d: TimerDurationType, repeat: bool, tim
|
|||
template RaftCancelTimer*(TimerId) =
|
||||
mixin RaftCancelTimerCustomImpl
|
||||
RaftCancelTimerCustomImpl(TimerId)
|
||||
|
||||
template RaftIsExpiredTimer*(TimerId): bool =
|
||||
mixin RaftIsExpiredTimerImpl
|
||||
RaftIsExpiredTimerImpl(TimerId)
|
||||
|
||||
|
|
Loading…
Reference in New Issue