File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed
branches/snap-stage3/src/librustdoc Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 89c8ef792f7e7641abfac421ba1e8f90384883ec
4
+ refs/heads/snap-stage3: c6e8af446fa7fcd6b2362489293f2e6c5b98ffc3
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -21,27 +21,3 @@ pub struct NominalOp<T> {
21
21
impl < T : Copy > NominalOp < T > : Clone {
22
22
fn clone ( & self ) -> NominalOp < T > { copy * self }
23
23
}
24
-
25
- pub fn spawn_listener< A : Owned > (
26
- f : fn ~( oldcomm:: Port < A > ) ) -> oldcomm:: Chan < A > {
27
- let setup_po = oldcomm:: Port ( ) ;
28
- let setup_ch = oldcomm:: Chan ( & setup_po) ;
29
- do task:: spawn |move f| {
30
- let po = oldcomm:: Port ( ) ;
31
- let ch = oldcomm:: Chan ( & po) ;
32
- oldcomm:: send ( setup_ch, ch) ;
33
- f ( move po) ;
34
- }
35
- oldcomm:: recv ( setup_po)
36
- }
37
-
38
- pub fn spawn_conversation < A : Owned , B : Owned >
39
- ( f : fn ~( oldcomm:: Port < A > , oldcomm:: Chan < B > ) )
40
- -> ( oldcomm:: Port < B > , oldcomm:: Chan < A > ) {
41
- let from_child = oldcomm:: Port ( ) ;
42
- let to_parent = oldcomm:: Chan ( & from_child) ;
43
- let to_child = do spawn_listener |move f, from_parent| {
44
- f ( from_parent, to_parent)
45
- } ;
46
- ( from_child, to_child)
47
- }
You can’t perform that action at this time.
0 commit comments