src/middlewares/circuit-breaker.js
function halfOpenWait(item, ctx) {
		item.state = C.CIRCUIT_HALF_OPEN_WAIT;
		item.ep.state = false;

		// Anti-stick protection
		item.cbTimer = setTimeout(() => halfOpen(item, ctx), item.opts.halfOpenTime);
		item.cbTimer.unref();
	}
function halfOpenWait(item, ctx) {
		item.state = C.CIRCUIT_HALF_OPEN_WAIT;
		item.ep.state = false;

		// Anti-stick protection
		item.cbTimer = setTimeout(() => halfOpen(item, ctx), item.opts.halfOpenTime);
		item.cbTimer.unref();
	}
function halfOpenWait ( item , ctx ) { item . state = C . CIRCUIT_HALF_OPEN_WAIT ; item . ep . state = false ; // Anti-stick protection item . cbTimer = setTimeout ( ( ) => halfOpen ( item , ctx ) , item . opts . halfOpenTime ) ; item . cbTimer . unref ( ) ; }
Change circuit-breaker status to half-open waiting. First request is invoked after half-open.

@param {Object} item
@param {Context} ctx
Change circuit - breaker status to half - open waiting . First request is invoked after half - open .