Resolve or reject the promise depending on the outcome of this promise.
Parameters
promise: Promise<unknown>
The promise whose resolution determines the outcome of this
request.
Returns Promise<void>
reject
reject(msg: unknown): void
Reject a request. This should be invoked for requests which failed to be
processed correctly.
Parameters
msg: unknown
The thing to reject with.
Returns void
resolve
resolve(msg: unknown): void
Resolve a request. This should be invoked for the successful processing
of this request. This doesn't necessarily mean that the request was sent
through, e.g. suppressing AS virtual users' messages is still a success.
Construct a new Request.