mapConnections

abstract fun <T> mapConnections(mapfilter: (P2pClient) -> T?): List<T>

Returns a list of results of your function applied to each connection in this list. Return null to not include this connection in the list. Note that the underlying data structure is synchronized so your function is called with this lock taken