mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01:00
c52884b3c8
# Description The local socket PR introduced a `Waitable` type, which could either hold a value or be waited on until a value is available. Unlike a channel, it would always return that value once set. However, one issue with this design was that there was no way to detect whether a value would ever be written. This splits the writer into a different type `WaitableMut`, so that when it is dropped, waiting threads can fail (because they'll never get a value). # Tests + Formatting A test has been added to `stress_internals` to make sure this fails in the right way. - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` |
||
---|---|---|
.. | ||
formats | ||
cache_file.rs | ||
config.rs | ||
core_inc.rs | ||
custom_values.rs | ||
env.rs | ||
mod.rs | ||
nu_plugin_nu_example.rs | ||
register.rs | ||
stream.rs | ||
stress_internals.rs |