mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 11:39:20 +00:00
feat: add multiple channel providers
Each provider is enabled via a feature flag. The currently implemented providers are: - std::mpsc - flume - crossbeam_channel
This commit is contained in:
parent
babcd7f4f7
commit
f3fe41aa82
10 changed files with 762 additions and 191 deletions
17
src/sync/mod.rs
Normal file
17
src/sync/mod.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
pub mod traits;
|
||||
|
||||
#[cfg(feature = "sync-crossbeam")]
|
||||
pub mod crossbeam;
|
||||
#[cfg(feature = "sync-flume")]
|
||||
pub mod flume;
|
||||
#[cfg(feature = "sync-std")]
|
||||
pub mod std;
|
||||
|
||||
#[cfg(feature = "sync-flume")]
|
||||
pub use flume::FlumeSuck;
|
||||
|
||||
#[cfg(feature = "sync-crossbeam")]
|
||||
pub use crossbeam::CrossbeamSuck;
|
||||
|
||||
#[cfg(feature = "sync-std")]
|
||||
pub use std::StdSuck;
|
||||
Loading…
Add table
Add a link
Reference in a new issue