Lookup array indices of tasks on completion of asynchronous operations.