Files
openide/platform/ui.jcef/jcef/JBCefAppUtils.kt
Daniil Ovchinnikov 36b34c4e18 extract intellij.platform.ui.jcef module
GitOrigin-RevId: 560932e829c0bbf85d51b22a80963a978cf89553
2024-09-03 17:43:45 +00:00

14 lines
440 B
Kotlin

// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ui.jcef
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.resume
suspend fun JBCefApp.getRemoteDebugPortSuspendable(): Int? {
return suspendCancellableCoroutine { continuation ->
this.getRemoteDebuggingPort { port ->
continuation.resume(port)
}
}
}