-
Notifications
You must be signed in to change notification settings - Fork 82
Allow core to be specified for a TcpServer instance #110
Comments
+1 to this. I think the other motivation would be to allow having multiple different |
I'm confused by the very idea of the
This way it's easy to run multiple things on an event loop. Is this not something that Tokio supports? Or am I misunderstanding the whole concept of Reactor Cores? |
@radix yes event loops support running many things (e.g. as you've mentioned) The intention of |
Is there any simplified version of |
Is there anyway to obtain the |
@messense would |
@alexcrichton How do you use |
@NickeZ oh the Note that |
This will not be an issue w/ Tokio reform (that is in progress) as the handle will be set for the executor. I'm going to close this for now. Let me know if I am incorrect. |
Right now the
with_handle
method ofTcpServer
allows access to a handle of the core created byserve
. It would be useful to allow thecore
instance to be passed in (or spawn the server using a providedhandle
).Without such an API anything that needs access to the handle (e.g. other initialization that requires a handle) has to go through the
with_handle
call ofTcpServer
.Whether a spawn vs run API (or both) is added is debatable.
The text was updated successfully, but these errors were encountered: