Skip to content

Commit

Permalink
Add comment in _prepare_dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed Dec 16, 2024
1 parent 2c7e3ea commit fac959a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/primitives/primitive_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _submit(self):
self._future = executor.submit(self._function, *self._args, **self._kwargs)
executor.shutdown(wait=False)

def _prepare_dump(self):
def _prepare_dump(self): # This method allows PrimitiveJob to be serialized
_ = self.result()
_ = self.status()
self._future = None
Expand Down

0 comments on commit fac959a

Please sign in to comment.