mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
set rayon global thread panic handler
This commit is contained in:
parent
62d93a1025
commit
63ec83f60d
3 changed files with 7 additions and 0 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -293,6 +293,7 @@ dependencies = [
|
|||
"dirs",
|
||||
"itertools 0.9.0",
|
||||
"log",
|
||||
"rayon-core",
|
||||
"scopetime",
|
||||
"simplelog",
|
||||
"tui",
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ keywords = [
|
|||
crossterm = "0.15"
|
||||
tui = { version = "0.8", default-features=false, features = ['crossterm'] }
|
||||
itertools = "0.9"
|
||||
rayon-core = "1.7"
|
||||
log = "0.4"
|
||||
simplelog = "0.7"
|
||||
dirs = "2.0"
|
||||
|
|
|
|||
|
|
@ -39,6 +39,11 @@ fn main() -> Result<()> {
|
|||
|
||||
let rx_input = poll::start_polling_thread();
|
||||
|
||||
rayon_core::ThreadPoolBuilder::new()
|
||||
.panic_handler(|e| panic!(e))
|
||||
.build_global()
|
||||
.unwrap();
|
||||
|
||||
app.update();
|
||||
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Reference in a new issue