| TestKitBaseWithinT Method (TimeSpan, TimeSpan, FuncT, String, NullableTimeSpan) |
Execute code block while bounding its execution time between
min and
max.
`within` blocks may be nested. All methods in this class which take maximum wait times
are available in a version which implicitly uses the remaining time governed by
the innermost enclosing `within` block.
Remarks Note that the max duration is scaled using
Dilated(TimeSpan) which uses the config value "akka.test.timefactor"
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public T Within<T>(
TimeSpan min,
TimeSpan max,
Func<T> function,
string hint = null,
Nullable<TimeSpan> epsilonValue = null
)
member Within :
min : TimeSpan *
max : TimeSpan *
function : Func<'T> *
?hint : string *
?epsilonValue : Nullable<TimeSpan>
(* Defaults:
let _hint = defaultArg hint null
let _epsilonValue = defaultArg epsilonValue null
*)
-> 'T
Parameters
- min
- Type: SystemTimeSpan
TBD - max
- Type: SystemTimeSpan
TBD - function
- Type: SystemFuncT
TBD - hint (Optional)
- Type: SystemString
TBD - epsilonValue (Optional)
- Type: SystemNullableTimeSpan
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TTBD
See Also