Hi guys, anybody know hot to run Runnable class at...
# announcements
r
Hi guys, anybody know hot to run Runnable class at the current thread?
l
@rmarinsky
yourRunnable.run()
r
I need to execute it not once I want to do smth like it:
Copy code
RunableClass().with {
    start()
    otherActions()
    ...
    stop()
}
and between start and stop runs method run() from runable
k
Just call it?
g
Runnable class is just an interface instance, there is no any specific threading strategy or behavior, so it works exactly the same as call of any other method
2
r
oh.. thanks seams like I'd been doing smth wrong