mirror of https://github.com/stjepang/smol
Revert the change in number of executor threads
This commit is contained in:
parent
39f67144a4
commit
f093e19805
|
@ -151,7 +151,7 @@ impl<T> Task<T> {
|
|||
T: Send + 'static,
|
||||
{
|
||||
static EXECUTOR: Lazy<Executor> = Lazy::new(|| {
|
||||
for _ in 0..2 {
|
||||
for _ in 0..num_cpus::get().max(1) {
|
||||
thread::spawn(|| {
|
||||
enter(|| {
|
||||
let (p, u) = async_io::parking::pair();
|
||||
|
|
Loading…
Reference in New Issue