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

Method _set_message

dwave/cloud/computation.py:186–196  ·  view source on GitHub ↗

Complete the future with a message from the server. The message from the server may actually be an error. Args: message (dict): Data from the server from trying to complete query.

(self, message)

Source from the content-addressed store, hash-verified

184 return id(self)
185
186 def _set_message(self, message):
187 """Complete the future with a message from the server.
188
189 The message from the server may actually be an error.
190
191 Args:
192 message (dict):
193 Data from the server from trying to complete query.
194 """
195 self._message = message
196 self._signal_ready()
197
198 def _set_exception(self, exception):
199 """Complete the future with an exception.

Callers 1

Calls 1

_signal_readyMethod · 0.95

Tested by

no test coverage detected