code: function enter(f, rejected) {
  	return function() {
  		try {
  			return Promise.resolve(f.apply(this, arguments)).catch(rejected)
  		}
  		catch(e) { return rejected(e) }
  	}
  }
docs: enter a sub-processes with privated rejected method