MCPcopy Create free account
hub / github.com/celery/celery / take

Method take

celery/utils/collections.py:779–786  ·  view source on GitHub ↗
(self, *default)

Source from the content-addressed store, hash-verified

777 self.maxsize and self._evict()
778
779 def take(self, *default):
780 # type: (*Any) -> Any
781 try:
782 return self._pop()
783 except IndexError:
784 if default:
785 return default[0]
786 raise self.Empty()
787
788 def _pop_to_evict(self):
789 # type: () -> None

Callers 3

_pop_to_evictMethod · 0.95

Calls

no outgoing calls

Tested by 2