We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0734b5 commit 9430c46Copy full SHA for 9430c46
communication/src/initialize.rs
@@ -282,12 +282,9 @@ pub struct WorkerGuards<T:Send+'static> {
282
283
impl<T:Send+'static> WorkerGuards<T> {
284
285
- /// Returns the number of guards.
286
- pub fn len(&self) -> usize { self.guards.len() }
287
-
288
/// Returns a reference to the indexed guard.
289
- pub fn guard(&self, index: usize) -> &std::thread::JoinHandle<T> {
290
- &self.guards[index]
+ pub fn guards(&self) -> &[std::thread::JoinHandle<T>] {
+ &self.guards[..]
291
}
292
293
/// Waits on the worker threads and returns the results they produce.
0 commit comments