Struct concurrent::sync::Stm [] [src]

pub struct Stm<T> { /* fields omitted */ }

A software transactional memory container.

Methods

impl<T> Stm<T>
[src]

Create a new STM container.

Update the data.

This applies closure f to the data of self. If the data isn't updated in the meantime, the change will applied. Otherwise, the closure is reevaluated.

Read the container.