You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked into the code and found that thenReturnInOrder internally actually calls thenAnswer, which probably means that the call to _throwIfInvalid is not needed.
This is similar to #260, but for Futures and Streams.
Edit: found this workaround, but it is still not trivial to figure this out when first coming to the package. I suppose an alternative to thenAnswerInOrder could be storing some state on the Invocation object:
Currently,
thenReturnInOrder
does not acceptFuture
s orStream
s (similarly tothenReturn
).I would like to be able to write the following code:
I've looked into the code and found that
thenReturnInOrder
internally actually callsthenAnswer
, which probably means that the call to_throwIfInvalid
is not needed.This is similar to #260, but for
Future
s andStream
s.Edit: found this workaround, but it is still not trivial to figure this out when first coming to the package. I suppose an alternative to
thenAnswerInOrder
could be storing some state on theInvocation
object:I'm quite new to this library, so please correct me if anything I'm saying is wrong.
The text was updated successfully, but these errors were encountered: