minor fix

This commit is contained in:
Andrew Golovashevich 2025-09-05 19:40:18 +03:00
parent e578517821
commit 129cee26ca

View File

@ -41,8 +41,8 @@ public inline fun <R> CloseableState.childES(
@OptIn(ManualStateManipulation::class) @OptIn(ManualStateManipulation::class)
public inline fun <R> CloseableState.ExternallySynchronized.closeableWrapper( public inline fun <R> CloseableState.ExternallySynchronized.closeableWrapper(
constructor: () -> CloseableState.ExternallySynchronized = ::ErrorOnConcurrentAccessState, crossinline constructor: () -> CloseableState.ExternallySynchronized = ::ErrorOnConcurrentAccessState,
scope: (CloseableState.ExternallySynchronized) -> R, noinline scope: (CloseableState.ExternallySynchronized) -> R,
): R { ): R {
contract { contract {
callsInPlace(constructor, InvocationKind.EXACTLY_ONCE) callsInPlace(constructor, InvocationKind.EXACTLY_ONCE)