//leakcanary-repo/shark/ThrowingCancelableFileSourceProvider
ThrowingCancelableFileSourceProvider¶
[jvm]\ class ThrowingCancelableFileSourceProvider(file: File, throwIfCanceled: Runnable) : DualSourceProvider
A DualSourceProvider that invokes throwIfCanceled before every read, allowing cancellation of IO based work built on top by throwing an exception.
Constructors¶
ThrowingCancelableFileSourceProvider | [jvm] constructor(file: File, throwIfCanceled: Runnable) |
Functions¶
Name | Summary |
---|---|
openHeapGraph | [jvm] fun DualSourceProvider.openHeapGraph(proguardMapping: ProguardMapping? = null, indexedGcRootTypes: Set<HprofRecordTag> = HprofIndex.defaultIndexedGcRootTags()): CloseableHeapGraph |
openRandomAccessSource | [jvm] open override fun openRandomAccessSource(): RandomAccessSource |
openStreamingSource | [jvm] open override fun openStreamingSource(): BufferedSource |