Join Slack
Powered by
Can I assign to `var` variable that's declared out...
# getting-started
k
Karlo Lozovina
08/12/2020, 8:11 PM
Can I assign to
var
variable that's declared outside of an
measureNanoTime
block? It doesn't seem to work...
n
nanodeath
08/12/2020, 8:23 PM
should work
e
ephemient
08/12/2020, 8:25 PM
https://pl.kotl.in/lYILp0Q4e
works fine
f
Fabio
08/12/2020, 11:04 PM
try with atomic classes (AtomicBoolean, AtomicInteger) it's in some tricky situations more reliable
4
Views
Open in Slack
Previous
Next