I wanna make a value that only makes a network req...
# ktor
z
I wanna make a value that only makes a network request when its read from. Using lazy delegate seemed like the solution but then I cant do that because the get method on the HTTP client is a suspending method. How would I be able to do this?
r
Easiest way is probably a method that caches it's return value, or a CompletableDefered. There's no support for suspend properties afaik