Comments (2)
Hi, obviously this is a late response and I apologize for that. I'm new to the project but I believe I can help you (or future people browsing/arriving from Google) here.
As you may have guessed from the other issue you posted (#306), the Fetch library uses a cache (DataCache
) with every call to .run
, with the default cache being a brand new InMemoryCache
. The behavior of this cache is it effectively deduplicates requests within a single Fetch
run. The implementation of .traverse
here means that this cache is shared amongst each request so you see this behavior. If you do not traverse
or flatMap
them and instead run them individually (as .run
without passing in any cache), you should see a random number generated each time, as you expect.
from fetch.
@sloshy thank you for answer.
from fetch.
Related Issues (20)
- Add .run* syntax to Fetch instances HOT 1
- Fetch site for both versions - Scala - Kotlin
- Both versions home page for fetch
- Implement Fetch redesign in the actual microsite
- Tutorial missing something HOT 1
- Update Cats 2.0.0 and Monix 3.0.0 HOT 1
- Loosen type restrictions on liftIO
- Add cross build for Scala 2.13 HOT 3
- Fixes microsite theme
- Caching in readme HOT 2
- Http4sExample fails
- Wrong library dependency configuration for Scala.js
- Make possible to define timeouts on smaller parts of Fetch and handle timeouts (or other errors) HOT 1
- Scala3 migration HOT 1
- Update to cats-effect 3
- Fetch breaks on Cats 2.7.0 due to Traverse implementation detail HOT 2
- Parallel instance for Fetch? HOT 1
- DataCache trait doesn't allow to use bounds and typeclasses on keys and values HOT 1
- README.md links to docs still point to 47deg, not xebia-functional HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fetch.