handleExceptionAndCleanup

private suspend fun handleExceptionAndCleanup(observedRequestNode: Node<RateLimitedRequest>?, exception: Exception)(source)

Deals with the caught exception while maintaining the integrity of the semaphore state.