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

An `inline` function has two lambda parameters and you want to pass one of them into `Thread { ... }` (stored/run later) while still inlining the other. Which combination is correct?

inline fun process( immediate: () -> Unit, deferred: () -> Unit ) { immediate() Thread { deferred() }.start() }