pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

feat(ffi): add async message iterator #442

Closed JP-Ellis closed 2 weeks ago

JP-Ellis commented 2 weeks ago

Add a new V4 asynchronous message iterator. This mirrors the existing pact_handle_get_sync_message_iter and pact_handle_get_http_iter, and is the V4 counterpart for pact_handle_get_message_iter.

I have not marked the pact_handle_get_message_iter as deprecated; however, if the functionality of the new iterator supplants the older PactMessageIterator, it may be worth documenting the deprecation and directing people to use the new function/iterator.

PS: I have not written tests for it, but it would appear that the other iterators don't have tests either.