sapling/futures-ext
Pavel Aslanov 6c6d948385 adds Mutex extentsion method .with
Summary:
I find that it is common pattern
```
// create unnecessary to reduce scope of lock guard
let output = {
    let mut value = mutex_value.lock().expect("lock poisoned");
    ... // do some stuff here
};
```
This extension simplifies this pattern to
```
let output = mutex_value.with(|value| /* do some stuff here */);
```

Reviewed By: Imxset21, farnz

Differential Revision: D15577135

fbshipit-source-id: 6b22b20dda79e532ff5ec8ce75cda8b1c1404368
2019-05-31 09:28:54 -07:00
..
src adds Mutex extentsion method .with 2019-05-31 09:28:54 -07:00
Cargo.toml rust: convert futures-ext to Rust 2018 2019-02-12 08:43:24 -08:00