C# Class clojure.lang.Agent.Action

An encapsulated message.
Afficher le fichier Open project: arohner/clojure-contrib Class Usage Examples

Méthodes publiques

Méthode Description
Action ( Agent agent, IFn fn, ISeq args, bool solo ) : System

Create an encapsulated message to an agent.

execute ( ) : void

Send the message.

Private Methods

Méthode Description
ExecuteAction ( object state ) : void

Worker method to execute the action on a thread.

corresponds to doRun in Java version

Method Details

Action() public méthode

Create an encapsulated message to an agent.
public Action ( Agent agent, IFn fn, ISeq args, bool solo ) : System
agent Agent The agent the message is for.
fn IFn The function to compute the new value.
args ISeq Additional arguments (in addition to the current state).
solo bool Execute on its own thread?
Résultat System

execute() public méthode

Send the message.
public execute ( ) : void
Résultat void