promise: Add Promise.asCompletableFuture() extension function
authorEldar Abusalimov <Eldar.Abusalimov@jetbrains.com>
Fri, 18 Sep 2020 17:00:53 +0000 (20:00 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Fri, 18 Sep 2020 18:20:59 +0000 (18:20 +0000)
commit2976a6c49637db1863faabe43e8f032e5039c03b
treeb49c30e14a0500e9e18e7c273219a8d0496c0711
parente205fbbff2648ea58af67b74bda142c5e2c87548
promise: Add Promise.asCompletableFuture() extension function

Unlike previous ad-hoc implementations, this implements proper
cancellation propagation in both directions.

GitOrigin-RevId: fad86cb5e8b0a97c9891852e19e2ed72bd0a755d
platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationManager.java
platform/util/concurrency/org/jetbrains/concurrency/AsyncPromise.kt
platform/util/concurrency/org/jetbrains/concurrency/promise.kt
platform/util/concurrency/org/jetbrains/concurrency/promiseUtil.kt