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

An inline function has two lambda parameters. You want to store one of them in a field for later asynchronous use, but keep the other inlined. Which signature is correct?

inline fun configure( onEvent: () -> Unit, handler: () -> Unit ) { /* store handler, call onEvent now */ }