public interface AsyncVfsEventsListener
Receives notifications about changes in the virtual file system, just as BulkFileListener
and VirtualFileListener
,
but on a pooled thread, which allows to off-load the EDT, but requires more care in the listener code due to asynchrony and
the absence of read action. For a safer alternative, consider AsyncFileListener
.
Use the AsyncVfsEventsPostProcessor.addListener(AsyncVfsEventsListener, Disposable)
to subscribe.
AsyncVfsEventsPostProcessor
Modifier and Type | Method and Description |
---|---|
void |
filesChanged(java.util.List<? extends VFileEvent> events)
Invoked after the given events were applied to the VFS.
|
void filesChanged(java.util.List<? extends VFileEvent> events)
ProgressIndicator
which is cancelled on project disposal,
thus one can call ProgressManager.checkCancelled()
to cancel the background task when the project is disposed.