Open sugat009 opened 1 month ago
As noted here: https://github.com/medic/cht-core/issues/9237#issuecomment-2221081736
I think we should go for a function signature like:
const getAll = () => AsyncGenerator<Person.v1.Person, void>
Also, FTR, I have found this blog post to be very helpful in wrapping my mind around async interators/generators.
Is your feature request related to a problem? Please describe.
This feature is part of a bigger feature of the creation of API endpoints for getting contacts by type. (#9193) The target of this feature is to have the functionality of getting people using
cht-datasource
as anAsyncIterator
or something similar that can fetch data in batches.Describe the solution you'd like
Describe alternatives you've considered
Additional context