FutureHandle.setException

Mark the future done and set an exception.

If the future is already done when this method is called, throws $(D_PSYMBOL InvalidStateError).

interface FutureHandle
void
setException
(
Throwable exception
)

Meta