Closed alemhnan closed 6 years ago
if you call disconnect() on this objects:
domain.eventStore.disconnect()
domain.aggregateLock.disconnect()
if (domain.commandBumper) domain.commandBumper.disconnect()
this should do the trick
Super. Thanks a lot.
Is it possible to stop the domain programmatically? It is useful for testing purposes. Now we need to stop with a process.exit. That makes more difficult to use a test runner.