Github user pnowojski commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6091#discussion_r191768672
  
    --- Diff: 
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/async/AsyncFunction.scala
 ---
    @@ -46,4 +48,16 @@ trait AsyncFunction[IN, OUT] extends Function {
         * @param resultFuture to be completed with the result data
         */
       def asyncInvoke(input: IN, resultFuture: ResultFuture[OUT]): Unit
    +
    +  /**
    +    * [[AsyncFunction.asyncInvoke]] timeout occurred.
    +    * By default, the result future is exceptionally completed with 
timeout exception.
    +    *
    +    * @param input element coming from an upstream task
    +    * @param resultFuture to be completed with the result data
    +    */
    +  def timeout(input: IN, resultFuture: ResultFuture[OUT]): Unit = {
    +    resultFuture.completeExceptionally(new TimeoutException("Async 
function call has timed out."))
    --- End diff --
    
    same question about the tests.


---

Reply via email to