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
rnett
02/18/2022, 12:51 AM
Easiest way is probably a method that caches it's return value, or a CompletableDefered. There's no support for suspend properties afaik