notifyCancelled() {
        if (!this._cancelled) {
            this._cancelled = true;
            for (let l of this._listeners) {
                l();
            }
        }
    }
Set the call cancelled.

Invokes all callbacks registered with onCancel() and
sets `cancelled = true`.