question: shut down the async data set iterator thread this is not typically necessary if using a single asyncdatasetiterator thread is a daemon thread and so should n't block the jvm from exiting behaviour of next , hasnext etc methods after shutdown of async iterator is undefined concode_field_sep RuntimeException exception concode_elem_sep BlockingQueue<DataSet> blockingQueue concode_elem_sep DataSetIterator baseIterator concode_elem_sep IteratorRunnable runnable concode_elem_sep boolean killRunnable concode_elem_sep Semaphore runCompletedSemaphore concode_elem_sep Thread thread concode_elem_sep boolean isAlive concode_field_sep DataSet next concode_elem_sep DataSet next concode_elem_sep int cursor concode_elem_sep void setPreProcessor concode_elem_sep int batch concode_elem_sep boolean hasNext concode_elem_sep void run concode_elem_sep int totalOutcomes concode_elem_sep void remove concode_elem_sep List<String> getLabels concode_elem_sep int inputColumns concode_elem_sep void reset concode_elem_sep int totalExamples concode_elem_sep int numExamples
target: void function ( ) { if ( thread . isAlive ( ) ) { runnable . killRunnable = true ; thread . interrupt ( ) ; } }