Pedestal Weak is out! :rocket: Pedestal Weak is ...
# feed
c
Pedestal Weak is out! 🚀 Pedestal Weak is a multiplatform library to expose weak references and weak maps behind a single unified API:
Copy code
val data = WeakMap<String, User>()

data["1234"] = User(…)
data["5678"] = User(…)

println(data["1234"]) // Maybe a User, maybe null
Weak references allow the runtime to free objects before variables go out of scope. They are particularly helpful to optimize complex applications to reduce memory usage, in particular within the implementation of caches. Learn more: documentationwhat's new? • #C078Z1QRHL3
👍 5
🎉 4
n
Hi @CLOVIS great work. is there any example project which uses this lib? will be great for new comers.
c
@Niraj Patidar Not at the moment. Do you have anything specific you would like to see?
n
I just want to see how can we use this extensively in a big project. Some example flows or snippets would be great. @CLOVIS