C# Класс clojure.lang.Atom

Provides spin-loop synchronized access to a value. One of the reference types.
Наследование: ARef
Показать файл Открыть проект

Открытые методы

Метод Описание
Atom ( object state ) : System

Construct an atom with given intiial value.

Atom ( object state, IPersistentMap meta ) : System

Construct an atom with given initial value and metadata.

deref ( ) : object

Gets the (immutable) value the reference is holding.

Приватные методы

Метод Описание
compareAndSet ( object oldv, object newv ) : bool
reset ( object newv ) : object
swap ( IFn f ) : object
swap ( IFn f, Object arg ) : object
swap ( IFn f, Object arg1, Object arg2 ) : object
swap ( IFn f, Object x, Object y, ISeq args ) : object

Описание методов

Atom() публичный Метод

Construct an atom with given intiial value.
public Atom ( object state ) : System
state object The initial value
Результат System

Atom() публичный Метод

Construct an atom with given initial value and metadata.
public Atom ( object state, IPersistentMap meta ) : System
state object The initial value.
meta IPersistentMap The metadata to attach.
Результат System

deref() публичный Метод

Gets the (immutable) value the reference is holding.
public deref ( ) : object
Результат object