Skip to content

Commit

Permalink
support change chan len
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed May 30, 2022
1 parent cb0dfd7 commit d7f1993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ impl Config {
self
}

/// if none=> unbounded() channel,if Some => bounded(len) channel
pub fn chan_len(mut self, len: Option<usize>) -> Self {
self.chan_len = len;
self
Expand Down

0 comments on commit d7f1993

Please sign in to comment.