Skip to content

Commit 25e667c

Browse files
committed
Revert "Temporary get rid of type aliases usages"
This reverts commit 4d286e0.
1 parent eb62668 commit 25e667c

File tree

1 file changed

+3
-4
lines changed
  • kotlinx-coroutines-async/src/main/kotlin

1 file changed

+3
-4
lines changed

kotlinx-coroutines-async/src/main/kotlin/async.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import javax.swing.SwingUtilities
2727
* @return CompletableFuture object representing result of computations
2828
*/
2929
fun <T> async(
30-
continuationWrapper: ((() -> Unit) -> Unit)? = null,
30+
continuationWrapper: ContinuationWrapper? = null,
3131
coroutine c: FutureController<T>.() -> Continuation<Unit>
3232
): CompletableFuture<T> {
3333
val controller = FutureController<T>(continuationWrapper)
@@ -57,11 +57,10 @@ fun asyncUI(
5757
}
5858
}
5959

60-
// TODO: Uncomment this when KT-12832 is fixed
61-
// typealias ContinuationWrapper = (() -> Unit) -> Unit
60+
typealias ContinuationWrapper = (() -> Unit) -> Unit
6261

6362
open class FutureController<T>(
64-
private val continuationWrapper: ((() -> Unit) -> Unit)?
63+
private val continuationWrapper: ContinuationWrapper?
6564
) {
6665
val future = CompletableFuture<T>()
6766

0 commit comments

Comments
 (0)