MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / add

Method add

dwave/cloud/client/base.py:1661–1675  ·  view source on GitHub ↗
(future)

Source from the content-addressed store, hash-verified

1659 self._poll_queue.task_done()
1660
1661 def add(future):
1662 # add future to query frame_futures
1663 # returns: worker lives on?
1664
1665 # `None` task signifies thread termination
1666 if future is None:
1667 task_done()
1668 return False
1669
1670 if future.id not in frame_futures and not future.done():
1671 frame_futures[future.id] = future
1672 else:
1673 task_done()
1674
1675 return True
1676
1677 while True:
1678 frame_futures.clear()

Callers 1

_path_candidatesFunction · 0.45

Calls 1

doneMethod · 0.80

Tested by

no test coverage detected