0

I am going through Akka documentation and could not understand one argument. I tried searching over the Internet and API, but I could not reason out this.

ScatterGatherFirstCompletedRouter is defined with one of the constructor argument as

within: FiniteDuration

The documentation only says

You have to define the 'within: Duration' parameter (for example: within = 10 seconds).

But it does not explain what it means. What does within mean above? In fact at many a places in the Akka API, the arguments are not explained, leaving me bewildered.

4

1 回答 1

3

当文档不足时,您可以使用源代码。

within用于指定等待第一个答案的时间。

根据使用within定义PromiseActorRefwithin你会得到 Status.Failure(AskTimeoutException("Timed out"))响应。

于 2013-05-28T13:37:20.660 回答