public inline fun <T, R> T.run(block: T.() -> R): R { | |
contract { | |
callsInPlace(block, InvocationKind.EXACTLY_ONCE) | |
} | |
return block() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment