C# Class clojure.lang.Agent.Action

An encapsulated message.
Datei anzeigen Open project: arohner/clojure-contrib Class Usage Examples

Public Methods

Method 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

Method Description
ExecuteAction ( object state ) : void

Worker method to execute the action on a thread.

corresponds to doRun in Java version

Method Details

Action() public method

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?
return System

execute() public method

Send the message.
public execute ( ) : void
return void