Promisified events using the Façade pattern
Scenario:
You have a reusable module. Under the hood it uses some kind of event driven architecture. We wish to expose a public API with which we can use our inclosed module. The tricky part with having events is that we…