code: func (c *Runtime) AwaitPromise(promiseObjectId string, returnByValue bool, generatePreview bool) (*RuntimeRemoteObject, *RuntimeExceptionDetails, error) {
  	var v RuntimeAwaitPromiseParams
  	v.PromiseObjectId = promiseObjectId
  	v.ReturnByValue = returnByValue
  	v.GeneratePreview = generatePreview
  	return c.AwaitPromiseWithParams(&v)
  }
docs: // AwaitPromise - Add handler to promise with given promise object id.
  // promiseObjectId - Identifier of the promise.
  // returnByValue - Whether the result is expected to be a JSON object that should be sent by value.
  // generatePreview - Whether preview should be generated for the result.
  // Returns -  result - Promise result. Will contain rejected value if promise was rejected. exceptionDetails - Exception details if stack strace is available.