mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 22:23:32 +08:00
Appropriately execute IO tasks for JConsoleInput
This commit is contained in:
@@ -181,7 +181,7 @@ public interface MiraiConsoleImplementation : CoroutineScope {
|
||||
public fun requestInputJ(hint: String): String
|
||||
|
||||
override suspend fun requestInput(hint: String): String {
|
||||
return withContext(Dispatchers.IO) { requestInputJ(hint) }
|
||||
return runInterruptible(Dispatchers.IO) { requestInputJ(hint) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user