MCPcopy Create free account
hub / github.com/FastLED/FastLED / record_success

Method record_success

examples/Asio/Server/test_stress.py:61–65  ·  view source on GitHub ↗
(self, response_time_ms: float)

Source from the content-addressed store, hash-verified

59 self.lock: threading.Lock = threading.Lock()
60
61 def record_success(self, response_time_ms: float):
62 with self.lock:
63 self.total_requests += 1
64 self.successful_requests += 1
65 self.response_times.append(response_time_ms)
66
67 def record_failure(self, error_type: str):
68 with self.lock:

Callers 1

make_requestFunction · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected