cancel() 공개 메소드

public cancel ( ) : void
리턴 void
예제 #1
0
        public void _kill()
        {
            // get/reset the pending queue
            Queue queue = null;

            lock (m_lock)
            {
                queue        = this.m_queue;
                this.m_queue = new Queue();
            }

            // cancel all pending messages
            while (true)
            {
                Future future = queue.get();
                if (future == null)
                {
                    break;
                }
                future.cancel();
            }
        }
예제 #2
0
 internal void _dispatch(Future future)
 {
     try
     {
         if (future.isCancelled())
         {
             return;
         }
         if (m_pool.m_killed)
         {
             future.cancel(); return;
         }
         future.set(receive(future.m_msg));
     }
     catch (Err.Val e)
     {
         future.err(e.m_err);
     }
     catch (System.Exception e)
     {
         future.err(Err.make(e));
     }
 }
예제 #3
0
파일: Actor.cs 프로젝트: nomit007/f4
 internal void _dispatch(Future future)
 {
     try
       {
     if (future.isCancelled()) return;
     if (m_pool.m_killed) { future.cancel(); return; }
     future.set(receive(future.m_msg));
       }
       catch (Err.Val e)
       {
     future.err(e.m_err);
       }
       catch (System.Exception e)
       {
     future.err(Err.make(e));
       }
 }