invokeDeathSafe

fun invokeDeathSafe(action: () -> Unit)

Invokes action and destroys the lifecycle owner when it throws a DeadObjectException.

The exception is swallowed, as such, this method should only be used when the call can be ignored safely.