mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AppCode:Debugger: Cannot restart simulator when app was previously on a breakpoint (OC-1322)
AppCode:Simulator: starting simulator rewritten to avoid deadlocks and UI blocking
This commit is contained in:
@@ -2,6 +2,7 @@ package com.intellij.util.concurrency;
|
||||
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.util.Ref;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.concurrent.*;
|
||||
import java.util.concurrent.Semaphore;
|
||||
@@ -27,7 +28,7 @@ public class FutureResult<T> implements Future<T> {
|
||||
return myValue != null;
|
||||
}
|
||||
|
||||
public void set(T result) {
|
||||
public void set(@Nullable T result) {
|
||||
assert myValue == null;
|
||||
|
||||
myValue = Ref.create(Pair.create((Object)result, true));
|
||||
|
||||
Reference in New Issue
Block a user