Replies: 1 comment 1 reply
-
In the custom takeWithLog above, if I change the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experimenting with NATS for pub/sub messaging. The .NET client provides a stream consumer API that exposes a stream of messages as an IAsyncEnumerable. My sample publishes two messages to a stream, and then I attempt to take 2 messages from the stream via an IAsyncEnumerable. I receive both published messages, but the last message is duplicated. If I take 1 message, I receive two messages with the first message being duplicated.
If I implement a custom take with logging, I only see two values being yielded, but still 3 values result.
This behavior only occurs with the IAsyncEnumerable from the NATS .NET client. If I create other IAsyncEnumerables the behavior of the take is as expected.
I'm not sure what the issue could be that would cause a TaskSeq pipeline to behave differently based on the IAsyncEnumerable. Any thoughts on what could be happening here or how to debug?
Publish messages to stream
Consume messages from stream
Custom take with logging
Any help is appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions