1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00
wezterm/lua-api-crates/mux
Wez Furlong 02eb0b4294
mux: rename Mux::get() -> try_get(), add "infallible" Mux::get()
This allows removing a bunch of unwrap/expect calls.

However, my primary motive was to replace the cases where we used
Mux::get() == None to indicate that we were not on the main thread.

A separate API has been added to test for that explicitly rather than
implicitly.
2022-12-19 11:55:35 -07:00
..
src mux: rename Mux::get() -> try_get(), add "infallible" Mux::get() 2022-12-19 11:55:35 -07:00
Cargo.toml mux: switch RefCell to RwLock internally 2022-12-19 11:52:38 -07:00