%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/infra/fusioninventory/lib/lazy.js-0.5.1/spec/
Upload File :
Create Path :
Current File : //proc/self/root/home/infra/fusioninventory/lib/lazy.js-0.5.1/spec/async_handle_adapter.js

// This file is used by the promises-aplus-tests library.

var Lazy = require('../lazy');

module.exports = {
  deferred: function() {
    var handle = new Lazy.AsyncHandle();

    return {
      promise: handle,
      resolve: function(value) { handle._resolve(value); },
      reject: function(reason) { handle._reject(reason); }
    };
  }
};

Zerion Mini Shell 1.0