aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/util/task.rs')
-rw-r--r--components/util/task.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/util/task.rs b/components/util/task.rs
index 5907841e434..5de066d5823 100644
--- a/components/util/task.rs
+++ b/components/util/task.rs
@@ -16,17 +16,12 @@ pub fn spawn_named<S: IntoMaybeOwned<'static>>(name: S, f: proc():Send) {
});
}
-pub fn spawn_named_native<S: IntoMaybeOwned<'static>>(name: S, f: proc():Send) {
- spawn_named(name, f)
-}
-
/// Arrange to send a particular message to a channel if the task fails.
pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str,
state: task_state::TaskState,
f: proc(): Send,
msg: T,
- dest: Sender<T>,
- _native: bool) {
+ dest: Sender<T>) {
let future_result = TaskBuilder::new().named(name).try_future(proc() {
task_state::initialize(state);
rtinstrument::instrument(f);