| TestKitBaseWithinT Method (TimeSpan, FuncT, NullableTimeSpan) |
Execute code block while bounding its execution time between 0 seconds 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 max,
Func<T> function,
Nullable<TimeSpan> epsilonValue = null
)
member Within :
max : TimeSpan *
function : Func<'T> *
?epsilonValue : Nullable<TimeSpan>
(* Defaults:
let _epsilonValue = defaultArg epsilonValue null
*)
-> 'T
Parameters
- max
- Type: SystemTimeSpan
TBD - function
- Type: SystemFuncT
TBD - epsilonValue (Optional)
- Type: SystemNullableTimeSpan
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TTBD
See Also