File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
kotlinx-coroutines-async/src/main/kotlin Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import javax.swing.SwingUtilities
27
27
* @return CompletableFuture object representing result of computations
28
28
*/
29
29
fun <T > async (
30
- continuationWrapper : ((() -> Unit ) -> Unit ) ? = null,
30
+ continuationWrapper : ContinuationWrapper ? = null,
31
31
coroutine c : FutureController <T >.() -> Continuation <Unit >
32
32
): CompletableFuture <T > {
33
33
val controller = FutureController <T >(continuationWrapper)
@@ -57,11 +57,10 @@ fun asyncUI(
57
57
}
58
58
}
59
59
60
- // TODO: Uncomment this when KT-12832 is fixed
61
- // typealias ContinuationWrapper = (() -> Unit) -> Unit
60
+ typealias ContinuationWrapper = (() -> Unit ) -> Unit
62
61
63
62
open class FutureController <T >(
64
- private val continuationWrapper : ((() -> Unit ) -> Unit ) ?
63
+ private val continuationWrapper : ContinuationWrapper ?
65
64
) {
66
65
val future = CompletableFuture <T >()
67
66
You can’t perform that action at this time.
0 commit comments