Skip to content

IznaDev/Streamed_Cache_Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamed_Cache_Weather

A rust asynchronous library implementing a streamed cache bounding to a weather API.

The goal of the cache is to always return the most recent value the API has delivered.

I used the tokio crate in order to create a streamed cache communicating with a weather API ASYNCHORNOUSLY.

I used mutex and Arc to handle the datas via different threads, spawn tokio fonction to launch the subscribe and fetch functions in the background, and of course async/await and the very smart trait Future !

I simulated a Weather API.

Finally, I implemented tests.

it's a first draft that I'll develop in my next commits.

To test my code: cargo run test !

Long live Rust !

About

A rust asynchronous program implementing a streamed cache bounding to a weather API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages