@@ -21,8 +21,8 @@ for *at least* that period of time.
21
21
* ch - a channel of type T to send a `val` on
22
22
* val - a value of type T to send over the provided `ch`
23
23
" ]
24
- fn delayed_send < T : send > ( hl_loop : uv:: hl:: high_level_loop ,
25
- msecs : uint , ch : comm:: chan < T > , val : T ) {
24
+ fn delayed_send < T : copy send> ( hl_loop : uv:: hl:: high_level_loop ,
25
+ msecs : uint , ch : comm:: chan < T > , val : T ) {
26
26
task:: spawn ( ) { ||
27
27
unsafe {
28
28
let timer_done_po = comm:: port :: < ( ) > ( ) ;
@@ -97,8 +97,9 @@ An `option<T>` representing the outcome of the call. If the call `recv`'d on
97
97
the provided port in the allotted timeout period, then the result will be a
98
98
`some(T)`. If not, then `none` will be returned.
99
99
" ]
100
- fn recv_timeout < T : send > ( hl_loop : uv:: hl:: high_level_loop ,
101
- msecs : uint , wait_po : comm:: port < T > ) -> option < T > {
100
+ fn recv_timeout < T : copy send> ( hl_loop : uv:: hl:: high_level_loop ,
101
+ msecs : uint ,
102
+ wait_po : comm:: port < T > ) -> option < T > {
102
103
let timeout_po = comm:: port :: < ( ) > ( ) ;
103
104
let timeout_ch = comm:: chan ( timeout_po) ;
104
105
delayed_send ( hl_loop, msecs, timeout_ch, ( ) ) ;
0 commit comments