Skip to content

Commit

Permalink
update local cancel docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
shpface committed Jan 23, 2024
1 parent 1284adc commit 13b6781
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/braket/tasks/local_quantum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ def id(self) -> str:
return str(self._id)

def cancel(self) -> None:
"""Cancel the quantum task."""
# A LocalQuantumTask is already completed, so there is nothing to cancel
"""Attempt to cancel the quantum task.
Since this class is instantiated with the results, there is nothing to cancel. Attempting
to cancel an already completed task is not an error.
"""
pass

def state(self) -> str:
Expand Down

0 comments on commit 13b6781

Please sign in to comment.