MCPcopy
hub / github.com/python-trio/trio / is_set

Method is_set

src/trio/_sync.py:91–93  ·  view source on GitHub ↗

Return the current value of the internal flag.

(self)

Source from the content-addressed store, hash-verified

89 _flag: bool = attrs.field(default=False, init=False)
90
91 def is_set(self) -> bool:
92 """Return the current value of the internal flag."""
93 return self._flag
94
95 @enable_ki_protection
96 def set(self) -> None:

Callers 4

test_EventFunction · 0.95
ensureMethod · 0.80
doneMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_EventFunction · 0.76