about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-04-13 14:48:17 -0700
committerAaron Turon <aturon@mozilla.com>2015-04-13 14:48:17 -0700
commit6e0fb70ff6effe7b7be2c5fe951e9161613e6707 (patch)
tree21c4f6f8a87597e30384b86264701f4b30355562 /src/libstd/sys
parent6399bb425b3a82111cd554737f194c95b8f6bad5 (diff)
downloadrust-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