$97 GRAYBYTE WORDPRESS FILE MANAGER $56

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/node_modules/npm/node_modules/promise-inflight/

HOME
Current File : /usr/lib/node_modules/npm/node_modules/promise-inflight//README.md
# 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!


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.36 PM
root / root
0755
LICENSE
0.734 KB
10 Mar 2021 2.36 PM
root / root
0644
README.md
0.764 KB
10 Mar 2021 2.36 PM
root / root
0644
inflight.js
0.822 KB
10 Mar 2021 2.36 PM
root / root
0644
package.json
1.503 KB
10 Mar 2021 2.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF