@bennadel/circuit-breaker
Version:
A flexible circuit breaker for Node.js (requires ES6 class modules).
18 lines (10 loc) • 371 B
JavaScript
// I provide a Clock that returns the current UTC milliseconds.
class Clock {
// I return the UTC milliseconds.
getTickCount() {
return( Date.now() );
}
}
// ----------------------------------------------------------------------------------- //
// ----------------------------------------------------------------------------------- //
module.exports = Clock;