friendica-addons/advancedcontentfilter/vendor/npm-asset/p-finally
Hypolite Petovan 20862be7d0 [advancedcontentfilter] Add Composer dependencies
- slim/slim: ^3.1
- symfony/expression-language: ^3.4
- fxp/composer-asset-plugin: ~1.3
- bower-asset/vue: ^2.5
- bower-asset/vue-resource: ^1.5
2018-04-16 22:11:51 -04:00
..
index.js [advancedcontentfilter] Add Composer dependencies 2018-04-16 22:11:51 -04:00
license [advancedcontentfilter] Add Composer dependencies 2018-04-16 22:11:51 -04:00
package.json [advancedcontentfilter] Add Composer dependencies 2018-04-16 22:11:51 -04:00
readme.md [advancedcontentfilter] Add Composer dependencies 2018-04-16 22:11:51 -04:00

readme.md

p-finally Build Status

Promise#finally() ponyfill - Invoked when the promise is settled regardless of outcome

Useful for cleanup.

Install

$ npm install --save p-finally

Usage

const pFinally = require('p-finally');

const dir = createTempDir();

pFinally(write(dir), () => cleanup(dir));

API

pFinally(promise, [onFinally])

Returns a Promise.

onFinally

Type: Function

Note: Throwing or returning a rejected promise will reject promise with the rejection reason.

  • p-try - Promise#try() ponyfill - Starts a promise chain
  • More…

License

MIT © Sindre Sorhus