rust/src/libstd/task.rs

27 lines
894 B
Rust
Raw Normal View History

// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Deprecated in favor of `thread`.
2012-11-18 19:56:50 -06:00
#![deprecated = "use std::thread instead"]
use thread;
use kinds::Send;
2012-11-18 19:56:50 -06:00
/// Deprecate: use `std::thread::Cfg` instead.
#[deprecated = "use std::thread::Cfg instead"]
pub type TaskBuilder = thread::Cfg;
/// Deprecated: use `std::thread::Thread::spawn` instead.
#[deprecated = "use std::thread::Thread::spawn instead"]
pub fn spawn(f: proc(): Send) {
thread::Thread::spawn(f);
}