diff --git a/README.md b/README.md index 2b899fa..c0ddac7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,9 @@ let balancer = new RedisFunctionsBalancer([A, B, C], redisClient); balancer.setMethods([A, B]); // ... // // Get async iterator {done, value} -while ( (foo = await balancer.getAsyncIterator().next()) && !foo.done) { +let iterator = await balancer.getAsyncIterator(); + +while ( (foo = await iterator.next()) && !foo.done) { // Your function A|B|C will be here evenly let method = foo.value; diff --git a/package.json b/package.json index 1deb431..4882898 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redis-functions-balancer", - "version": "1.0.3", + "version": "1.0.4", "description": "Balance NodeJs functions with Redis", "repository": "/~https://github.com/dmitryuk/RedisFunctionsBalancer", "main": "index.ts",