expectMostRecentItem

Returns the most recent item that has already been received. If channel was closed with no item being received previously, this function will throw an AssertionError. If channel was closed with an exception, this function will throw the underlying exception.

Throws

if no item was emitted.