code: function(result) {
                    if (done) {
                      if (session.httpRequest && session.httpRequest.log) {
                        session.httpRequest.log.error("jsonrpc promise resolved after response sent:", req.method, "params:", req.params);
                      }
                      return;
                    }
                    return makeResult(req, result)
                  }
docs: it's a promise