Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinsuspend functions usageSingle-choice MCQ

Is this a valid way to expose a suspend function as a property-like API?

class Repo { suspend val user: User get() = fetchUser() }