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

mp

11/02/2018, 4:39 PM
what do you mean “before”? You mean on the enclosing function?
m

marcelo

11/02/2018, 4:41 PM
right the enclosing function, I had to add this:
Copy code
suspend {experienceTimer.tagVal("/sdsd/login").time {
                Thread.sleep(2)
            }}
I'm just not sure if that was correct or (more important) why do I need to specified that it's a suspended function if I specified it in the fuction?
oh boy, I think our lord and savior @elizarov answered my question back in 2017

https://youtu.be/_hfBv0a09Jc?t=1065

😄 1
4 Views