MCPcopy Create free account
hub / github.com/encode/starlette / get_identity

Function get_identity

tests/test_testclient.py:97–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 identity_runvar = anyio.lowlevel.RunVar[int]("identity_runvar")
96
97 def get_identity() -> int:
98 try:
99 return identity_runvar.get()
100 except LookupError:
101 token = next(counter)
102 identity_runvar.set(token)
103 return token
104
105 startup_task = object()
106 startup_loop = None

Callers 2

lifespan_contextFunction · 0.85
loop_idFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected