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

Method put

dwave/cloud/concurrency.py:86–93  ·  view source on GitHub ↗
(self, item, *args, **kwargs)

Source from the content-addressed store, hash-verified

84 """
85
86 def put(self, item, *args, **kwargs):
87 # unpack item, extract priority
88 if isinstance(item, concurrent.futures.thread._WorkItem):
89 item = _PrioritizedWorkItem(item)
90 else:
91 item = _PriorityOrderedItem(item)
92
93 super().put(item, *args, **kwargs)
94
95 def get(self, *args, **kwargs):
96 prioritized_item = super().get(*args, **kwargs)

Callers 8

_shutdown_threadsMethod · 0.45
_submitMethod · 0.45
filter_readyMethod · 0.45
_cancelMethod · 0.45
_poll_using_backoffMethod · 0.45
_do_poll_problemsMethod · 0.45
_loadMethod · 0.45

Calls 2

Tested by

no test coverage detected