<@U21LBQBU2> the way to express it now is: ``` val...
# coroutines
e
@bj0 the way to express it now is:
Copy code
val parent = CompletableFuture<Unit>()
val actor = actor(parent = parent) { ... }
....
parent.complete(Unit) // complete parent, normally, don't cancel it (or it cancels children)
actor.close() // close actor
parent.join() // will wait for actor since it is a child of parent
It is cumbersome. We are looking at ways to make it better. We have few ideas, but I'd really like to hear more details on your use-case. Why would need to wait for actor to finish processing? What exactly you are trying to achive?