-
## Steps to reproduce
- `futures-preview = { version = "0.3.0-alpha.19", features = [ "async-await" ] }` in `Cargo.toml` as recommended in §3.1.
- Try to build the example in https://book.async.rs…
-
### Version
latest
### Description
I'm currently working with tonic for implementing gRPC services in Rust, and I've encountered a situation where the server might not shut down gracefully due to…
yhl25 updated
2 months ago
-
The [`sync_mpsc`](https://github.com/tokio-rs/tokio/blob/master/benches/sync_mpsc.rs) benchmark keeps failing due to fluctuations in its running time. We should do something about this.
-
I have written a benchmark to compare using hollywood to using go channels.
The benchmark can be found here: https://github.com/andreaugustoaragao/bench_actors/blob/main/actors_test.go
I don't k…
-
看实现是类似一个一个MPSC的无锁队列。
多个producer会通过exchange保证调用顺序和WriteRequest的插入顺序是一致的。在single consumer写之前,会找到old_head和new_head之间的WriteRequest进行链表反转,然后往fd里写出这一部分数据。
一般实现是:单纯的单链表,维护一个head和一个tail指针,producer在tail插入新…
-
I've added benchmarks and it turns out that comm channels are sometimes faster than stdlib channels. Unfortunately I messed up the commit message because I tried to use markdown syntax. Here is what i…
-
I believe `Sender::send()` is not cancel safe in regard that it takes ownership of the value to be sent. If the future is cancelled, the value is gone with no way to recover it. This makes using it in…
-
I suspect that this is still a bug as the select can complete on either branch of the select in a non-deterministic fashion. The right way to handle (I think) is to not fail when the sender fails to s…
-
## Bug Report
### Version
├── tonic v0.9.2
├── tonic-web v0.9.2
│ ├── tonic v0.9.2 (*)
└── tonic-build v0.9.2
### Platform
Linux 5.18.10-051810-generic #202207071639 SMP PREEMPT_D…
-
- [ ] Implement good TestAndSet spinlock
Write different implementations IThreadPool
- [ ] `IntusiveList` with `std::mutex`
- [ ] `IntusiveList` with `spinlock`
- [ ] `IntusiveList` with `std:…
MBkkt updated
2 years ago