getCompletedOrNull

fun <T> Deferred<T>.getCompletedOrNull(): T?

Gets the Deferred.getCompleted value if Deferred.isCompleted or null otherwise.

It will still throw an exception is the Deferred was completed exceptionally, unless this was with an IllegalStateException