Skip to content

About

It's a rust-example

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Notes

This rust example is for Rust Tokio Notify Implement SingleFlight Based on My Scenario.

About

It's a rust-example

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages