commit

fun <R> commit(transform: (A) -> R): R

Apply transform to value and return the result.

The name "commit" matches the warp vocabulary: coordination-free contributions are embroidered (merged); coordinated ones are committed (finalised via consensus). The exactly-once guarantee is enforced by WarpNode's Raft-backed proposal path — not by this method, which applies transform locally and is useful for constructing the value before handing it to WarpNode.enqueue.

Parameters

transform

the action to run on value.

Type Parameters

R

the result type.