MCPcopy Create free account
hub / github.com/dask/dask / is_coro

Method is_coro

dask/_task_spec.py:780–789  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778
779 @property
780 def is_coro(self):
781 if self._is_coro is None:
782 # Note: Can't use cached_property on objects without __dict__
783 try:
784 from distributed.utils import iscoroutinefunction
785
786 self._is_coro = iscoroutinefunction(self.func)
787 except Exception:
788 self._is_coro = False
789 return self._is_coro
790
791 def substitute(
792 self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected