]> git.lizzy.rs Git - rust.git/commitdiff
Deprecate std::sync::TaskPool
authorAaron Turon <aturon@mozilla.com>
Tue, 17 Feb 2015 00:33:55 +0000 (16:33 -0800)
committerAaron Turon <aturon@mozilla.com>
Tue, 17 Feb 2015 00:42:06 +0000 (16:42 -0800)
Rather than stabilize on the current API, we're going to punt this
concern to crates.io, to allow for faster iteration.

If you need this functionality, you might look at https://github.com/carllerche/syncbox

[breaking-change]

src/libstd/sync/task_pool.rs

index 684a46fd6ff5fa51fde077b0540c2c7a604491b5..2bc51e340c0349949838f6d44aac9c776db90333 100644 (file)
 
 //! Abstraction of a thread pool for basic parallelism.
 
-#![unstable(feature = "std_misc",
-            reason = "the semantics of a failing task and whether a thread is \
-                      re-attached to a thread pool are somewhat unclear, and the \
-                      utility of this type in `std::sync` is questionable with \
-                      respect to the jobs of other primitives")]
+#![deprecated(since = "1.0.0",
+              reason = "This kind of API needs some time to bake in \
+                        crates.io. Consider trying \
+                        https://github.com/carllerche/syncbox")]
+#![unstable(feature = "std_misc")]
 
 use core::prelude::*;