clojure.lang.Agent.dispatch C# (CSharp) Méthode

dispatch() public méthode

Send a message to the agent.
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 true means execute on its own thread (send-off); /// false means use a thread pool thread (send).
Résultat object
        public object dispatch(IFn fn, ISeq args, Boolean solo)
        {
            if ( _errors != null )
                throw new Exception("Agent has errors", (Exception)RT.first(_errors));
            Action action = new Action(this,fn,args,solo);
            DispatchAction(action);

            return this;
        }