Expected a completion event, but didn't received it #1057
-
Hi all,
I have got:
Unfortunately, I could not figure out why I do not receive the completion event. Calling the method
What is wrong with subscribe? PS: The code is written in Kotlin. Anyway, it is not different than in Java. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
assertCompletion verifies that you already received the completion event. In your case, it's not the case, it's still in process. Use awaitItem instead. It awaits for the emission of the item. The default timeout is 10s, which should be enough. |
Beta Was this translation helpful? Give feedback.
-
To update the docs, but I've done it yesterday :-)
… Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
assertCompletion verifies that you already received the completion event. In your case, it's not the case, it's still in process. Use awaitItem instead. It awaits for the emission of the item. The default timeout is 10s, which should be enough.