MCPcopy
hub / github.com/borgbackup/borg / async_response

Method async_response

src/borg/repository.py:515–524  ·  view source on GitHub ↗

Get one async result (only applies to remote repositories). async commands (== calls with wait=False, e.g. delete and put) have no results, but may raise exceptions. These async exceptions must get collected later via async_response() calls. Repeat the call until it returns

(self, wait=True)

Source from the content-addressed store, hash-verified

513 raise self.ObjectNotFound(id, str(self._location)) from None
514
515 def async_response(self, wait=True):
516 """Get one async result (only applies to remote repositories).
517
518 async commands (== calls with wait=False, e.g. delete and put) have no results,
519 but may raise exceptions. These async exceptions must get collected later via
520 async_response() calls. Repeat the call until it returns None.
521 The previous calls might either return one (non-None) result or raise an exception.
522 If wait=True is given and there are outstanding responses, it will wait for them
523 to arrive. With wait=False, it will only return already received responses.
524 """
525
526 def preload(self, ids):
527 """Preload objects (only applies to remote repositories)"""

Callers 4

write_chunkMethod · 0.45
saveMethod · 0.45
chunk_processorMethod · 0.45
chunk_processorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected