Skip to content
  • This project
    • Loading...
  • Sign in

Jabis Sevón / gun-multiserver

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • gun-multiserver
  • node_modules
  • gun
  • sea
  • then.js
  • Jabis Sevón's avatar
    multiserver gun added see changes in lib/radisk, lib/nomem, gun.js · 0e00439b
    Jabis Sevón committed 2020-05-03 17:35:59 +0200
    0e00439b
then.js 206 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9

    var Gun = require('./sea').Gun;
    Gun.chain.then = function(cb){
      var gun = this, p = (new Promise(function(res, rej){
        gun.once(res);
      }));
      return cb? p.then(cb) : p;
    }