minor fix
This commit is contained in:
parent
e578517821
commit
129cee26ca
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user