setException

open fun setException(t: Throwable)

Set an Exception to indicate an Exception that should be raised occurred that should be communicated to whoever is acquiring this semaphore.