Ejemplo n.º 1
0
        /// <summary>
        /// Enqueue nested actions.
        /// </summary>
        /// <returns></returns>
        /// <remarks>lowercase for core.clj compatibility</remarks>
        public static int releasePendingSends()
        {
            IPersistentVector sends = Agent.Nested;

            if (sends == null)
            {
                return(0);
            }
            for (int i = 0; i < sends.count(); i++)
            {
                Action a = (Action)sends.valAt(i);
                a.Agent.Enqueue(a);
            }
            Nested = PersistentVector.EMPTY;
            return(sends.count());
        }