rustasync / runtime

Empowering everyone to build asynchronous software
https://docs.rs/runtime
Apache License 2.0
862 stars 28 forks source link

Feature request: runtime-tokio-singlethreaded #2

Closed vi closed 5 years ago

vi commented 5 years ago

Choose one: feature request.

Expected Behavior

One of runtimes from the list to choose provies fully single-threaded (no clone syscall) application (unless I manually call std::thread::spawn, of course).

Current Behavior

There seems to be no such thing in the list.

Possible Solution

Add a runtime based on tokio::runtime::current_thread.

Context

Reasons to be singlethreaded:

yoshuawuyts commented 5 years ago

@vi thanks for filing this. Implemented in #3, and released as runtime-tokio@0.3.0-alpha.2 :tada: