dwrtc / ch.hsr.dsl.dwrtc.util / net.tomp2p.futures.BaseFuture / onFailure

onFailure

fun BaseFuture.onFailure(emitter: (failedReason: String) -> Unit): Unit

Raised whenever an operation has failed

TomP2P defines failure, such that there's a connection problem. Therefore, this only fires in cases where the DHT connection

Parameters

emitter - callable, when the operation has failed