Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new Org API to set a sync listener for refresh, intended to be used in conjunction with some other mechanism e.g. RPC to post messages from server to client. Since it currently shares the same thread as flusher, it's not really suitable for "work".
Also identified two issues with indexer refreshing and cache flushing
When using the indexer to report file changes, a high priority refresh (i.e. a single file change) was not being respected and the end result was a batched refresh + cache flush (
flusher.refreshAndFlush
) in all cases.Org.queueMetadataRefresh
methods, one accepting anIterable
that was being used instead of the other intended one whenrequests.length = 1
When using
autoFlush = true
, a now fixed high priority refresh request (from above) would do the refresh step but now not flush to cache (until the next queued update / multi file change).