File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 29
29
uses : actions-rs/cargo@v1
30
30
with :
31
31
command : test
32
- args : --features unstable
Original file line number Diff line number Diff line change @@ -10,7 +10,4 @@ description = "Experimental cooperative cancellation for async-std"
10
10
11
11
[dependencies ]
12
12
pin-project-lite = " 0.1.0"
13
- async-std = " 1.0"
14
-
15
- [features ]
16
- unstable = [" async-std/unstable" ]
13
+ async-std = " 1.9"
Original file line number Diff line number Diff line change 5
5
//! Experimental. The library works as is, breaking changes will bump major
6
6
//! version, but there are no guarantees of long-term support.
7
7
//!
8
- //! Additionally, this library uses unstable cargo feature feature of `async-std` and, for
9
- //! this reason, should be used like this:
10
- //!
11
- //! ```toml
12
- //! [dependencies.stop-token]
13
- //! version = "0.1.0"
14
- //! features = [ "unstable" ]
15
- //! ```
16
- //!
17
8
//! # Motivation
18
9
//!
19
10
//! Rust futures come with a build-in cancellation mechanism: dropping a future
@@ -71,7 +62,7 @@ use std::pin::Pin;
71
62
use std:: task:: { Context , Poll } ;
72
63
73
64
use async_std:: prelude:: * ;
74
- use async_std:: sync :: { channel , Receiver , Sender } ;
65
+ use async_std:: channel :: { self , Receiver , Sender } ;
75
66
use pin_project_lite:: pin_project;
76
67
77
68
enum Never { }
You can’t perform that action at this time.
0 commit comments