get And Update
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.getAndUpdate
Content copied to clipboard
getAndUpdate(function)Content copied to clipboard
Updates variable atomically using the specified function of its value and returns its old value.