Skip to content

zhlsunshine/rust-singleflight-with-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust example for SingleFlight pattern

This Rust example is for SingleFlight pattern implementation based on Rust tokio::sync::Notify lib.

File Description

  • rust-singleflight-with-notify is the binary of this example
  • --concurrency is the option of concurrency number

Binary build

$ cd rust-singleflight-with-notify
$ cargo build
$ cd target/debug
$ ./rust-singleflight-with-notify --concurrency 100
first get into the host name resolving task!
Time taken: 2.000608821s

Test Result

rust-singleflight-with-notify

About

It's a rust-example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages