main

square/leakcanary

Last updated at: 29/12/2023 09:39

Friendly.kt

TLDR

This file contains a set of utility functions and a property related to the LeakCanary library.

Methods

There are no methods in this file.

Classes

There are no classes in this file.

@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "NOTHING_TO_INLINE")
@file:JvmName("leakcanary-android-release_Friendly")

package leakcanary.internal.friendly

internal inline val mainHandler
  get() = leakcanary.internal.mainHandler

internal inline fun checkMainThread() = leakcanary.internal.checkMainThread()

internal inline fun <reified T : Any> noOpDelegate(): T = leakcanary.internal.noOpDelegate()

internal inline fun measureDurationMillis(block: () -> Unit) =
  leakcanary.internal.measureDurationMillis(block)