mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
fix(cli/repl): put the thread to sleep when idle (#7804)
This commit is contained in:
parent
59312f3936
commit
c191ca1aeb
1 changed files with 3 additions and 1 deletions
|
@ -447,7 +447,9 @@ async fn run_repl(flags: Flags) -> Result<(), AnyError> {
|
|||
result = &mut repl => {
|
||||
return result;
|
||||
}
|
||||
_ = &mut *worker => {}
|
||||
_ = &mut *worker => {
|
||||
tokio::time::delay_for(tokio::time::Duration::from_millis(10)).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue