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

Daniele B

02/08/2023, 9:15 AM
I have a trivial question, I think. This code is run inside a function of a class. Typically inside any class function you can recall the class object with
this
, but inside the
run blocking
lambda,
this
becomes the coroutine scope. How can I reference the class object instead?
s

simon.vergauwen

02/08/2023, 9:17 AM
this@NameOfClass
d

Daniele B

02/08/2023, 9:17 AM
great, thanks!
2 Views