Eel: add a method to convert EelProcess to the JVM Process.

It might be used by legacy API that isn't aware of Eel.


Merge-request: IJ-MR-144282
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 1225131b701594637c982c1f1fd97fa0d7cb007a
This commit is contained in:
Ilya Kazakevich
2024-09-07 17:44:47 +00:00
committed by intellij-monorepo-bot
parent 8308802117
commit a2d32ec64e
@@ -66,6 +66,12 @@ interface EelProcess {
*/
suspend fun kill()
/**
* Converts to the JVM [Process] which can be used instead of [EelProcess] for compatibility reasons.
* Note: After conversion, this [EelProcess] shouldn't be used: Use result [Process] instead
*/
fun convertToJavaProcess(): Process
@Throws(ResizePtyError::class) // Can't use @CheckReturnValue: KTIJ-7061
suspend fun resizePty(columns: Int, rows: Int)