@@ -11,9 +11,9 @@ import com.intellij.openapi.components.service
1111import com.intellij.openapi.progress.ProcessCanceledException
1212import com.intellij.openapi.progress.ProgressIndicator
1313import com.intellij.openapi.rd.createNestedDisposable
14- import com.intellij.openapi.rd.util.launchIOBackground
15- import com.intellij.openapi.rd.util.launchIOBackground
16- import com.intellij.openapi.rd.util.launchOnUiAnyModality
14+ import kotlinx.coroutines.Dispatchers
15+ import kotlinx.coroutines.launch
16+ import com.intellij.openapi.rd.util.launchOnUi
1717import com.intellij.openapi.rd.util.startUnderBackgroundProgressAsync
1818import com.intellij.openapi.rd.util.startUnderModalProgressAsync
1919import com.intellij.openapi.ui.DialogBuilder
@@ -199,7 +199,7 @@ class CawsConnectionProvider : GatewayConnectionProvider {
199199 )
200200 }
201201
202- lifetime.launchIOBackground {
202+ lifetime.launch( Dispatchers . IO ) {
203203 ApplicationManager .getApplication().messageBus.syncPublisher(WorkspaceNotifications .TOPIC )
204204 .environmentStarted(
205205 WorkspaceListStateChangeContext (
@@ -249,7 +249,7 @@ class CawsConnectionProvider : GatewayConnectionProvider {
249249 duration = timeTakenToCheckInstallation.toDouble()
250250 )
251251
252- lifetime.launchIOBackground {
252+ lifetime.launch( Dispatchers . IO ) {
253253 environmentActions.stopEnvironment()
254254 GatewayUI .getInstance().connect(parameters)
255255 }
@@ -460,7 +460,7 @@ class CawsConnectionProvider : GatewayConnectionProvider {
460460
461461 val promise = AsyncPromise <Unit >()
462462 fun start () {
463- lifetime.launchOnUiAnyModality {
463+ lifetime.launchOnUi {
464464 view.removeAll()
465465 }
466466
0 commit comments