CasperSecurity

Current Path : /usr/share/nodejs/trivial-deferred/
Upload File :
Current File : //usr/share/nodejs/trivial-deferred/index.js

module.exports = Deferred

var P
/* istanbul ignore next */
try {
  P = Promise
} catch (er) {
  try {
    P = require('bluebird')
  } catch (er) {
    throw new Error('this module requires a Promise implementation.  ' +
                    'Try installing bluebird.')
  }
}


function Deferred () {
  this.resolve = null
  this.reject = null
  this.promise = new P(function (resolve, reject) {
    this.reject = reject
    this.resolve = resolve
  }.bind(this))
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY