invoke

inline operator fun invoke(crossinline block: (HeapGraph) -> Set<Long>): LeakingObjectFinder

Utility function to create a LeakingObjectFinder from the passed in block lambda instead of using the anonymous object : LeakingObjectFinder syntax.

Usage:

val listener = LeakingObjectFinder {

}