In the course of my development, I've sometimes found it necessary to simulate delay or latency as I'm often requesting resources that are on my local development machine and I get response times that don't reflect the real world. To help create this simulated latency, I whipped together a simple little delay function that inserts random wait periods to better reflect what might happen in a production, publicly served web app.
A few days ago, I published my first NodeJS module, The Guvna! It's intended to manage concurrency of a function and I'm pretty pleased with it. You can check it out on GitHub or you can get it via the command line: npm install guvna Here's a quick look under the hood: |
I am a geek. This is where I share my geekery.
Archives
December 2013
Categories |