question: add the specified task to the queue and wait for the receiver to be running before returning concode_field_sep Thread backgroundThread concode_elem_sep Runnable idleOperation concode_elem_sep boolean isIdle concode_elem_sep Object lock concode_elem_sep TaskQueue queue concode_elem_sep IdleListener[] idleListeners concode_field_sep void notifyProgress concode_elem_sep void notifyIdle concode_elem_sep void start concode_elem_sep boolean isIdle concode_elem_sep void removeIdleListener concode_elem_sep void setIdleOperation concode_elem_sep void addIdleListener concode_elem_sep boolean waitForIdle concode_elem_sep boolean addLastTaskAndWaitUntilRunning concode_elem_sep boolean waitUntilRunning
target: boolean function ( Task arg0 , long arg1 ) { synchronized ( lock ) { queue . addNewTask ( arg0 ) ; return waitUntilRunning ( arg1 ) ; } }