https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

bj0

09/27/2018, 8:51 PM
caching the value?
a

Allan Wang

09/27/2018, 8:58 PM
pretty much caching the value, but also while it is trying to retrieve it. If we run two methods simultaneously, I want them to use the output of the parameter method once, rather than each spawn their own parameter call
b

bj0

09/27/2018, 11:16 PM
the coroutine library has a mutex object you could use for calculating the value
3 Views