async def cancel_quantum_job(self, request: quantum.CancelQuantumJobRequest) -> None:
        """Records the cancellation in `cancel_requests`.

        This is called from the asyncio thread.
        """
        self.all_cancel_requests.append(request)
        await asyncio.sleep(0)
Records the cancellation in `cancel_requests`.

        This is called from the asyncio thread.
        
cirq-google/cirq_google/engine/stream_manager_test.py