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

Method top

celery/utils/threads.py:300–309  ·  view source on GitHub ↗

The topmost item on the stack. Note: If the stack is empty, :const:`None` is returned.

(self)

Source from the content-addressed store, hash-verified

298
299 @property
300 def top(self):
301 """The topmost item on the stack.
302
303 Note:
304 If the stack is empty, :const:`None` is returned.
305 """
306 try:
307 return self._local.stack[-1]
308 except (AttributeError, IndexError):
309 return None
310
311
312class LocalManager:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected