import { IORef } from 'fp-ts/lib/IORef' ; import { BreakerClosed , BreakerOpen } from './types' ; param errorCount export const breakerClosed = ( errorCount ) => new BreakerClosed ( errorCount ) ; param openEndTime export const breakerOpen = ( openEndTime ) => new BreakerOpen ( openEndTime ) ; /**
 * Gets current time as UTC timestamp
 */ export const getCurrentTime = ( ) => new IORef ( Date . now ( ) ) ;