mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-31 11:30:16 +08:00
Appropriately execute IO tasks for JConsoleInput
This commit is contained in:
parent
b58bcfe4ac
commit
b62b6c3958
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user