Repository: actix/actix-net (language: rust)

Issue:
poll_recv private associated function
Hi,

actix-server is using `poll_recv` function
https://docs.rs/tokio/1.2.0/tokio/signal/unix/struct.Signal.html#method.poll_recv
which is not available in tokio 1.0 (it was added in 1.2).
While the actix-server crate requires tokio 1.0, see https://github.com/actix/actix-net/blob/master/actix-server/Cargo.toml#L36

Any suggestion on how to workaround? Thanks.

```
  --> external/__actix_server__2_0_0_beta_3/src/signals.rs:85:34
   |
85 |                 if Pin::new(fut).poll_recv(cx).is_ready() {
   |                                  ^^^^^^^^^ private associated function
```


Discussion / hints:
It was a mistake to not bump the version to 1.2. 

That said is there any reason prevent you from update to tokio 1.2 ? 

Fix patch:
diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml
index 4d1534069d..0a3957974d 100755
--- a/actix-server/Cargo.toml
+++ b/actix-server/Cargo.toml
@@ -32,7 +32,7 @@ log = "0.4"
 mio = { version = "0.7.6", features = ["os-poll", "net"] }
 num_cpus = "1.13"
 slab = "0.4"
-tokio = { version = "1", features = ["sync"] }
+tokio = { version = "1.2", features = ["sync"] }
 
 [dev-dependencies]
 actix-rt = "2.0.0"


Test patch: