<@U3E25GSEP> it compiles, but is it tail call opti...
# announcements
v
@robin it compiles, but is it tail call optimized?
a
There is no recursion in there?
r
No function is tail call optimized on the JVM (Except for maybe some optimization the runtime does). You can imitate that behavior in recursive functions by using the
tailrec
modifier.
v
But how to do in with
lateinit var ...
?
r
I don't think it's possible there. If you really need it you will have to unroll it yourself.
I'm interested what you're actually trying to build here, your requirements seem curiously specific
v
a scatter-and-gather pool of workers, each of which must process a single task at a time and it has capabilities based on it's state (connected/disconnected/failed/paused), it also renews its connection on timely bases or after specific errors.
yes, it looks like a job for akka 🙂
v
I do 🙂