came up with something that accomplishes my goals ...
# coroutines
a
came up with something that accomplishes my goals well enough
r
I think you don't need to do
cached!!
in else part. just
cached
should be fine.
🚫 1
l
@Rajkumar Singh Would be true if it was a local variable, but it's a member variable.
BTW, I think it'd be safer to use
lazy { }
for
cached
.
☝️ 1
d
Definitely, especially since it'll prevent the race condition you currently have.