diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-04-13 14:48:17 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2015-04-13 14:48:17 -0700 |
| commit | 6e0fb70ff6effe7b7be2c5fe951e9161613e6707 (patch) | |
| tree | 21c4f6f8a87597e30384b86264701f4b30355562 /src/libstd/sys | |
| parent | 6399bb425b3a82111cd554737f194c95b8f6bad5 (diff) | |
| download | rust-6e0fb70ff6effe7b7be2c5fe951e9161613e6707.tar.gz rust-6e0fb70ff6effe7b7be2c5fe951e9161613e6707.zip | |
Generalize `spawn` beyond unit closures
`thread::spawn` was previously restricted to closures that return `()`, which limited the utility of joining on a spawned thread. However, there is no reason for this restriction, and this commit allows arbitrary return types. Since it introduces a type parameter to `JoinHandle`, it's technically a: [breaking-change] However, no code is actually expected to break.
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions
