function forget(promise) {
    void promise.then(null, function (e) {
        // TODO: Use a better logging mechanism
        // eslint-disable-next-line no-console
        console.error(e);
    });
}
Consumes the promise and logs the error when it rejects.
@param promise A promise to forget.