[maven] IDEA-313767 LongRunningTask<R> -> LongRunningEmbedderTask<R> to avoid confusion with LongRunningTask

GitOrigin-RevId: f853fe239a8944dfc46fab376445cb5412017f09
This commit is contained in:
Dmitry Kichinsky
2023-05-12 13:52:47 +00:00
committed by intellij-monorepo-bot
parent dc656ca0c9
commit e03ee479c4
2 changed files with 3 additions and 3 deletions
@@ -296,11 +296,11 @@ public abstract class MavenEmbedderWrapper extends MavenRemoteObjectWrapper<Mave
myCustomization = null;
}
protected abstract <R> R runLongRunningTask(@NotNull LongRunningTask<R> task,
protected abstract <R> R runLongRunningTask(@NotNull LongRunningEmbedderTask<R> task,
@Nullable MavenProgressIndicator progressIndicator) throws MavenProcessCanceledException;
@FunctionalInterface
protected interface LongRunningTask<R> {
protected interface LongRunningEmbedderTask<R> {
R run(MavenServerEmbedder embedder, String longRunningTaskId) throws RemoteException, MavenServerProcessCanceledException;
}
@@ -9,7 +9,7 @@ import java.util.*
abstract class MavenEmbedderWrapperEx(project: Project) : MavenEmbedderWrapper(project) {
@Throws(MavenProcessCanceledException::class)
override fun <R> runLongRunningTask(task: LongRunningTask<R>,
override fun <R> runLongRunningTask(task: LongRunningEmbedderTask<R>,
progressIndicator: MavenProgressIndicator?): R =
runBlocking {
val longRunningTaskId = UUID.randomUUID().toString()