Click or drag to resize
Akka.NETTestKitBaseReceiveOne Method (NullableTimeSpan)
Receive one message from the internal queue of the TestActor. This method blocks the specified duration or until a message is received. If no message was received, null is returned.
Remarks
This method does NOT automatically scale its Duration parameter using Dilated(TimeSpan)!

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public Object ReceiveOne(
	Nullable<TimeSpan> max = null
)

Parameters

max (Optional)
Type: SystemNullableTimeSpan
The maximum duration to wait. If null the config value "akka.test.single-expect-default" is used as timeout. If set to a negative value or InfiniteTimeSpan, blocks forever.
Remarks
This method does NOT automatically scale its Duration parameter using Dilated(TimeSpan)!

Return Value

Type: Object
The message if one was received; null otherwise
See Also