vertx / io.vertx.kotlin.core.shareddata / io.vertx.core.shareddata.Counter / compareAndSetAwait

# compareAndSetAwait

`suspend fun Counter.compareAndSetAwait(expected: Long, value: Long): Boolean`

Suspending version of method io.vertx.core.shareddata.Counter.compareAndSet

### Parameters

`expected` - the expected value

`value` - the new value

Return

Boolean

NOTE: This function has been automatically generated from io.vertx.core.shareddata.Counter using Vert.x codegen.