Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncIterator Support #66

Merged
merged 1 commit into from
Jan 21, 2021
Merged

AsyncIterator Support #66

merged 1 commit into from
Jan 21, 2021

Conversation

simlay
Copy link
Contributor

@simlay simlay commented Jan 14, 2021

closes #66. This has some work around for some missing features in node-bindgen.

  • Show example of using the AsyncIterator
  • Update docs to show how to use it.

Cargo.toml Outdated Show resolved Hide resolved
@simlay simlay changed the title Iterator example AsyncIterator Support Jan 14, 2021
src/index.ts Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/consumer.rs Outdated Show resolved Hide resolved
@simlay simlay force-pushed the iterator-example branch 3 times, most recently from 10c4cd1 to 3b01d38 Compare January 19, 2021 18:18
@simlay simlay marked this pull request as ready for review January 19, 2021 18:26
src/consumer.rs Outdated Show resolved Hide resolved
@simlay simlay force-pushed the iterator-example branch 3 times, most recently from 64754c2 to b51f78e Compare January 19, 2021 20:53

const offsetIndex = 0
const consumer = await fluvio.partitionConsumer(topic, partition)
const stream = await consumer.getIterator(Offset.FromBeginning())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make this consistent with the Rust API and say consumer.stream(Offset) instead of calling it getIterator

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simlay simlay linked an issue Jan 21, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AsyncIterator support for PartitionConsumer
3 participants