about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-02-16 16:33:55 -0800
committerAaron Turon <aturon@mozilla.com>2015-02-16 16:42:06 -0800
commitefd2a1780b2ee1909e84df0c3b398adb024ee375 (patch)
treea3c5809d5201b6c939a7d5a5767d502cbe998a18 /src
parent81bce5290ff55b9a2eddd83d31b0778180904d7f (diff)
downloadrust-efd2a1780b2ee1909e84df0c3b398adb024ee375.tar.gz
rust-efd2a1780b2ee1909e84df0c3b398adb024ee375.zip
Deprecate std::sync::TaskPool
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]
Diffstat (limited to 'src')
-rw-r--r--src/libstd/sync/task_pool.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/sync/task_pool.rs b/src/libstd/sync/task_pool.rs
index 684a46fd6ff..2bc51e340c0 100644
--- a/src/libstd/sync/task_pool.rs
+++ b/src/libstd/sync/task_pool.rs
@@ -10,11 +10,11 @@
 
 //! 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::*;