Today I finally got a viable use case for the ES6 generator functions. I needed to create a service which will generate cryptographic signatures asynchronously on the background. The generation might take over ten seconds depending on the device it’s ran on. It would also have to start generating me a new signature right after More…