Promise<String> transformedPromise = new Promise<>();
transformedPromise.fulfillInAsync(() -> {
Thread.sleep(1000);
return "10";
}, executor).then(value -> { return Integer.parseInt(value); }).then(value -> {
<BUG>System.out.println(value);
});
consumedPromise.await();

transformedPromise.await();
</BUG>
}

Promise<String> transformedPromise = new Promise<>();
transformedPromise.fulfillInAsync(() -> {
Thread.sleep(1000);
return "10";
}, executor).then(value -> { return Integer.parseInt(value); }).then(value -> {
System.out.println("Consumed transformed int value: " + value);
});
consumedPromise.get();
transformedPromise.get();
