public synchronized void addWaitingTask ( BuildTask task , Runnable taskReadyCallback ) { unfinishedTasks . add ( task ) ; log . debug ( "adding waiting task: {}" , task ) ; waitingTasksWithCallbacks . put ( task , taskReadyCallback ) ; }
Add a task that is waiting for dependencies