Join Slack
Powered by
came up with something that accomplishes my goals ...
# coroutines
a
Andrew Gazelka
12/28/2020, 1:15 AM
came up with something that accomplishes my goals well enough
r
Rajkumar Singh
12/28/2020, 4:49 AM
I think you don't need to do
cached!!
in else part. just
cached
should be fine.
🚫 1
l
louiscad
12/28/2020, 11:04 AM
@Rajkumar Singh
Would be true if it was a local variable, but it's a member variable.
louiscad
12/28/2020, 11:05 AM
BTW, I think it'd be safer to use
lazy { }
for
cached
.
☝️ 1
d
Dominaezzz
12/28/2020, 12:27 PM
Definitely, especially since it'll prevent the race condition you currently have.
4
Views
Open in Slack
Previous
Next