mirror of https://github.com/stjepang/smol
Remove rustfmt.toml
This commit is contained in:
parent
953620d52b
commit
404c7bcc0a
|
@ -1 +0,0 @@
|
||||||
version = 'Two'
|
|
|
@ -40,10 +40,8 @@ pub fn spawn<T: Send + 'static>(future: impl Future<Output = T> + Send + 'static
|
||||||
for n in 1..=num_threads {
|
for n in 1..=num_threads {
|
||||||
thread::Builder::new()
|
thread::Builder::new()
|
||||||
.name(format!("smol-{}", n))
|
.name(format!("smol-{}", n))
|
||||||
.spawn(|| {
|
.spawn(|| loop {
|
||||||
loop {
|
catch_unwind(|| block_on(GLOBAL.run(future::pending::<()>()))).ok();
|
||||||
catch_unwind(|| block_on(GLOBAL.run(future::pending::<()>()))).ok();
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.expect("cannot spawn executor thread");
|
.expect("cannot spawn executor thread");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue