Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlincrossinline noinlineSingle-choice MCQ

Given this function, which statement is true about why the marked parameter must be declared `crossinline`?

inline fun runWithCleanup( crossinline action: () -> Unit ): Runnable { return Runnable { action() } }