>> + def send_request(self, method, params): >> + """Send a request >> + """ >> + msg, msgid = self._encoder.create_request(method, params) >> + self._send_message(msg) >> + self._pending_requests.add(msgid) > > Is this order safe? > What if response arriving before sending returning _send_message(msg)?
currently the order doesn't matter much as it's single threaded. YAMAMOTO Takashi ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel