private static synchronized boolean cancelScheduledTimeout ( AsyncTimeout node ) { // Remove the node from the linked list. for ( AsyncTimeout prev = head ; prev != null ; prev = prev . next ) { if ( prev . next == node ) { prev . next = node . next ; node . next = null ; return false ; } } // The node wasn't found in the linked list: it must have timed out! return true ; }
Returns true if the timeout occurred .