Closed dniku closed 8 years ago
Is it possible to move it to the top level
I don't think top-level is best place because msgpackrpc.server.AyncResult
is used with only msgpackrpc.server.Server
related code, not general use.
In that case, what would be the proper way to implement a non-blocking server?
It depends on your application.
Using AsyncResult
with thread, non-blocking libraries or etc.
msgpack-rpc-python is based on tornado so you can use tornado directly for network access.
Currently a non-blocking server would look like this:
In my opinion, this is a design problem:
AsyncResult
, which is essential to writing asynchronous servers, is contained in a non-top-level module. Is it possible to move it to the top level, for example, by importing from__init__.py
?