Comments (4)
@fereidani Hola! I was experimenting with kanal and tried to use it as a drop-in replacement for crossbeam_channel (in my fork of Tantivy search library) and flume (in Iroh, IPFS implementation in Rust). Highly likely it is me doing something wrong, but I didn't manage to make tests to pass, looks like them had been deadlocked.
I've created an exhibition PR for you, https://github.com/izihawa/tantivy/pull/16/files
where I've replaced channels. Before patch cargo test
works, after patch - does not.
I'm not very experienced in all this stuff and not sure is it any helpful, but still hope you may dig something there
UPD.
Well, I've should paid more attention to documentation, oneshot in kanal behaves differently and it was a reason of blockings. Tantivy works well if I take bounded(1) instead of oneshot
from kanal.
Thanks for the report, I'm working on it.
from kanal.
Can you reproduce it on the stable branch or is it just on nightly?
Unfortunately, I can't reproduce this issue on my system in stable or nightly and it is making it hard to debug.
Are you sure that there is nothing wrong with your CI?
from kanal.
I can't play it on my machine. But CI with tokyo or async-oneshot works fine in 4 seconds. And the same implementation but with kanal gives this timeout of 2 minutes.
from kanal.
Related Issues (20)
- pointer bugs 2 HOT 6
- Add Oneshot implementation HOT 17
- Async can't utilize `KanalPtr` as effective as Sync HOT 1
- Are kanal functions cancel-safe? HOT 9
- Miri error when forgetting Box<T> HOT 2
- Intrusive variants HOT 3
- Feature: implement recv_timeout for AsyncReceiver HOT 2
- Kanal is slower than crossbeam HOT 1
- Incorrect Send and Sync bounds HOT 2
- Oneshot: Data race detected HOT 4
- Unsound implementation of `as_sync` HOT 3
- Usage example
- Feature: Provide a select! macro HOT 6
- Slow usize send when using `MiMalloc` HOT 1
- mixing sync and async context HOT 2
- `Stream` that take ownership of the `Receiver` HOT 1
- OneshotSender is not Sync HOT 1
- API design for oneshot sender
- Oneshot: UB triggered when using Axum HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kanal.