Repository: actix/actix (language: rust)

Issue:
error: expected identifier, found reserved keyword `async`
The following error is occurred when an `async` method is used using rust 2018 edition.

```
error: expected identifier, found reserved keyword `async`
   --> src/main.rs:110:19
    |
110 |         Response::async(task)
    |                   ^^^^^ expected identifier, found reserved keyword
```

I think it is the same problem to [this](https://github.com/actix/actix-web/issues/613) and the method name is needed to change.


Discussion / hints:
Oh there was more? Well I'll rename it later on

Fix patch:
diff --git a/CHANGES.md b/CHANGES.md
index a585f07a1..235beeed7 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,9 @@
 # CHANGES
 
+## [0.7.11] (2010-01-xx)
+
+- Replace `async` functions in `Response` and `ActorResponse` as `future`
+
 ## [0.7.10] (2018-12-18)
 
 ### Changed
diff --git a/MIGRATION.md b/MIGRATION.md
index 8410029ef..18b91d17b 100644
--- a/MIGRATION.md
+++ b/MIGRATION.md
@@ -1,3 +1,7 @@
+## 0.7.11
+
+- `Response::async` and `ActorResponse::async` are re-named to `future` to avoid collision with 2018 keyword
+
 ## 0.7.9
 
 - `actix` no longer re-exports itself in `actix::prelude` to avoid conflicts with 2018 editions. Please access it through your `extern crate actix` import when necessary
diff --git a/src/handler.rs b/src/handler.rs
index b41b0c159..59fd71788 100644
--- a/src/handler.rs
+++ b/src/handler.rs
@@ -179,7 +179,7 @@ impl<I, E> fmt::Debug for Response<I, E> {
 
 impl<I, E> Response<I, E> {
     /// Creates an asynchronous response.
-    pub fn async<T>(fut: T) -> Self
+    pub fn future<T>(fut: T) -> Self
     where
         T: Future<Item = I, Error = E> + 'static,
     {
@@ -250,7 +250,7 @@ impl<A: Actor, I, E> ActorResponse<A, I, E> {
     }
 
     /// Creates an asynchronous response.
-    pub fn async<T>(fut: T) -> Self
+    pub fn future<T>(fut: T) -> Self
     where
         T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
     {


Test patch: