Méthode | Description | |
---|---|---|
AddError ( |
Add an error.
|
|
Agent ( Object state, IPersistentMap meta ) : System |
Construct an agent with given state and metadata.
|
|
Agent ( object state ) : System |
Construct an agent with given state and null metadata.
|
|
clearErrors ( ) : void |
Clear the agent's errors. Lowercase-name and for core.clj compatibility. |
|
deref ( ) : object |
Gets the (immutable) value the reference is holding.
|
|
dispatch ( IFn fn, ISeq args, System.Boolean solo ) : object |
Send a message to the agent.
|
|
getErrors ( ) : ISeq |
Get the agent's errors. Lowercase-name (and is a method instead of a property) for core.clj compatibility. |
|
releasePendingSends ( ) : int |
Enqueue nested actions. lowercase for core.clj compatibility |
|
shutdown ( ) : void |
Shutdown all threads executing. We need to work on this. |
Méthode | Description | |
---|---|---|
DispatchAction ( System.Action action ) : void |
Send an action (encapsulated message). If there is a transaction running on this thread, defer execution until the transaction ends (enqueue the action on the transaction). If there is already an action running, enqueue it (nested). Otherwise, queue it for execution. |
|
Enqueue ( System.Action action ) : void |
Enqueue an action in the pending queue. Spin-locks to update the queue. |
|
SetState ( object newState ) : bool |
Set the state.
|
public AddError ( |
||
e | The exception to add. | |
Résultat | void |
public Agent ( Object state, IPersistentMap meta ) : System | ||
state | Object | The initial state. |
meta | IPersistentMap | The metadata to attach. |
Résultat | System |
public Agent ( object state ) : System | ||
state | object | The initial state. |
Résultat | System |
public dispatch ( IFn fn, ISeq args, System.Boolean solo ) : object | ||
fn | IFn | The function to be called on the current state and the supplied arguments. |
args | ISeq | The extra arguments to the function. |
solo | System.Boolean | |
Résultat | object |
public static releasePendingSends ( ) : int | ||
Résultat | int |