diff options
author | Lars Bergstrom <lars@lars.com> | 2014-03-14 17:06:40 -0500 |
---|---|---|
committer | Lars Bergstrom <lars@lars.com> | 2014-03-18 22:00:48 -0500 |
commit | a6100563a6e43471ae43fb155113bc2026992f78 (patch) | |
tree | 7e7fbd7976c3da12ff463d6ffbeb1a3a336ae7d3 /src/components/main/util/task.rs | |
parent | fe22598c56092880b3e947b4fc9466d1a700e17e (diff) | |
download | servo-a6100563a6e43471ae43fb155113bc2026992f78.tar.gz servo-a6100563a6e43471ae43fb155113bc2026992f78.zip |
Rust upgrade for new master rebase
Diffstat (limited to 'src/components/main/util/task.rs')
-rw-r--r-- | src/components/main/util/task.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/components/main/util/task.rs b/src/components/main/util/task.rs deleted file mode 100644 index 9d6d0cbd8f0..00000000000 --- a/src/components/main/util/task.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -//use servo_util::task::spawn_named; -/* -pub fn spawn_listener<'a, A: Send, S: IntoMaybeOwned<'a>>(name: S, f: proc(Port<A>)) -> Chan<A> { - let (setup_po, setup_ch) = Chan::new(); - spawn_named(name, proc() { - let (po, ch) = Chan::new(); - setup_ch.send(ch); - f(po); - }); - setup_po.recv() -} - -pub fn spawn_conversation<'a, A: Send, B: Send, S: IntoMaybeOwned<'a>>(name: S, f: proc(Port<A>, Chan<B>)) -> (Port<B>, Chan<A>) { - let (from_child, to_parent) = Chan::new(); - let to_child = spawn_listener(name, |from_parent| { - f(from_parent, to_parent) - }); - (from_child, to_child) -} -*/
\ No newline at end of file |