MCPcopy
hub / github.com/celery/celery / discard

Method discard

celery/result.py:598–606  ·  view source on GitHub ↗

Remove result from the set if it is a member. Does nothing if it's not a member.

(self, result)

Source from the content-addressed store, hash-verified

596 raise KeyError(result)
597
598 def discard(self, result):
599 """Remove result from the set if it is a member.
600
601 Does nothing if it's not a member.
602 """
603 try:
604 self.remove(result)
605 except KeyError:
606 pass
607
608 def update(self, results):
609 """Extend from iterable of results."""

Calls 1

removeMethod · 0.95