fix two old Duration references
This commit is contained in:
parent
15a46c0dce
commit
1f61c293ec
2 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ Duration
|
|||
########
|
||||
|
||||
Durations are used throughout the Akka library, wherefore this concept is
|
||||
represented by a special data type, :class:`scala.concurrent.util.Duration`.
|
||||
represented by a special data type, :class:`scala.concurrent.duration.Duration`.
|
||||
Values of this type may represent infinite (:obj:`Duration.Inf`,
|
||||
:obj:`Duration.MinusInf`) or finite durations, or be :obj:`Duration.Undefined`.
|
||||
|
||||
|
|
|
|||
|
|
@ -713,8 +713,8 @@ Some `Specs2 <http://specs2.org>`_ users have contributed examples of how to wor
|
|||
actually beneficial also for the third point—is to apply the TestKit together
|
||||
with :class:`org.specs2.specification.Scope`.
|
||||
* The Specification traits provide a :class:`Duration` DSL which uses partly
|
||||
the same method names as :class:`scala.concurrent.util.Duration`, resulting in ambiguous
|
||||
implicits if ``akka.util.duration._`` is imported. There are two work-arounds:
|
||||
the same method names as :class:`scala.concurrent.duration.Duration`, resulting in ambiguous
|
||||
implicits if ``scala.concurrent.duration._`` is imported. There are two work-arounds:
|
||||
|
||||
* either use the Specification variant of Duration and supply an implicit
|
||||
conversion to the Akka Duration. This conversion is not supplied with the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue