Closed tjaskula closed 5 years ago
@tjaskula good catch. However, it is in the constructor. We may need to change the implementation a little to make it work. e.g., using a background thread or worker.
@zpbappi We can take a reference to the task and keep it in the private field. Then when the queue is disposed we can cancel the task
I was taking a look at this guy, but it seems it is already fixed :)
Fixed in #34
The resulting
Task
should be awaited when closing the mailbox and any catches exceptions should be logged.https://github.com/vlingo-net/vlingo-net-common/blob/a551e337108702c54aed97346f14a6bfc207950f/src/Vlingo.Common/Message/AsyncMessageQueue.cs#L43