}
}
};
definitionService.subscribeToChangeNotification(listener);
for (DefDescriptor<?> desc : cached) {
definitionService.onSourceChanged(desc, SourceMonitorEvent.CHANGED, null);
}
if (!latch.await(CACHE_CLEARING_TIMEOUT_SECS, TimeUnit.SECONDS)) {
throw new AuraRuntimeException(String.format(
"Timed out after %s seconds waiting for cached Aura definitions to clear: %s",
CACHE_CLEARING_TIMEOUT_SECS, defs));