Code example for Collection

Methods: remove

0
        public void run() { 
            runnable.run();
 
            // There may be another entry waiting in the queue for this one to 
            // finish. So, bump the wait callback up to run now. 
            activeThreads.remove(this);
 
            if (!tooSlow) {
                handler.removeCallbacks(wakeUpThread);
                handler.post(wakeUpThread);
            } 
        } 
    } 
}