vmware-go-kcl-v2/clientlibrary/worker
dferstay a35f4960a8 Make Worker.Shutdown() synchronous (#58)
Previously, a WaitGroup was used to track executing ShardConsumers
and prevent Worker.Shutdown() from returning until all ShardConsumers
had completed.  Unfortunately, it was possible for Shutdown() to race
with the eventLoop(), leading to a situation where Worker.Shutdown()
returns while a ShardConsumer is still executing.

Now, we increment the WaitGroup to keep track the eventLoop() as well
as the ShardConsumers.  This prevents shutdown from returning until all
background go-routines have completed.

Signed-off-by: Daniel Ferstay <dferstay@splunk.com>
2021-12-20 21:21:15 -06:00
..
record-processor-checkpointer.go Add support for providing custom checkpointer (#17) 2021-12-20 21:21:14 -06:00
shard-consumer.go Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
worker.go Make Worker.Shutdown() synchronous (#58) 2021-12-20 21:21:15 -06:00