Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.4.2
Description
Async I/O API Scala Example has duplicated resultFuture variable with different data type.
resultFuture: ResultFuture[(String, String)]
val resultFuture: Future[String]
this cause error on compile as variables have same naming.
In order to example works properly we need to update variable names to be distinct,
```
override def asyncInvoke(input: (String,String, String), resultFuture: ResultFuture[(String,String, String, String)]): Unit = {
// issue the asynchronous request, receive a future for the result
val resultFutureRequested: Future[String] = Future
// set the callback to be executed once the request by the client is complete
// the callback simply forwards the result to the result future
resultFutureRequested.onSuccess {
case result: String =>
}
}
```
Attachments
Issue Links
- links to