MCPcopy
hub / github.com/tornadoweb/tornado / add_message

Method add_message

demos/chat/chatdemo.py:48–52  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

46 return results
47
48 def add_message(self, message):
49 self.cache.append(message)
50 if len(self.cache) > self.cache_size:
51 self.cache = self.cache[-self.cache_size :]
52 self.cond.notify_all()
53
54
55# Making this a non-singleton is left as an exercise for the reader.

Callers 1

postMethod · 0.80

Calls 2

appendMethod · 0.80
notify_allMethod · 0.80

Tested by

no test coverage detected