From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../Front/node_modules/promise-inflight/README.md | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/promise-inflight/README.md (limited to 'sandbox/testAppNevena/Front/node_modules/promise-inflight/README.md') diff --git a/sandbox/testAppNevena/Front/node_modules/promise-inflight/README.md b/sandbox/testAppNevena/Front/node_modules/promise-inflight/README.md deleted file mode 100644 index f0ae3a44..00000000 --- a/sandbox/testAppNevena/Front/node_modules/promise-inflight/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# promise-inflight - -One promise for multiple requests in flight to avoid async duplication - -## USAGE - -```javascript -const inflight = require('promise-inflight') - -// some request that does some stuff -function req(key) { - // key is any random string. like a url or filename or whatever. - return inflight(key, () => { - // this is where you'd fetch the url or whatever - return Promise.delay(100) - }) -} - -// only assigns a single setTimeout -// when it dings, all thens get called with the same result. (There's only -// one underlying promise.) -req('foo').then(…) -req('foo').then(…) -req('foo').then(…) -req('foo').then(…) -``` - -## SEE ALSO - -* [inflight](https://npmjs.com/package/inflight) - For the callback based function on which this is based. - -## STILL NEEDS - -Tests! -- cgit v1.2.3