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
    we need to RM this after @amark patches · 22d83f95
    Jabis Sevón committed 2020-05-05 01:49:59 +0700
    22d83f95
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;
    }