updateAndGet

inline fun <V> AtomicRef<V>.updateAndGet(function: (V) -> V): V

Deprecated

arrow.continuation is being discontinued and will be removed in the next version in favor of the Effect/ EagerEffect Runtime. If you depend on low-level APIs as in arrow.continuation, feel free to write us in the Kotlin Slack channel for guidance. The AtomicRef APIs have been moved to arrow.core.generic

Replace with

import arrow.core.generic.updateAndGet
updateAndGet

Updates variable atomically using the specified function of its value and returns its new value.