score:0

your problem here is that youre at the flow-level, so when this is used there is nothing indicating when would be the correct time for the actor to be destroyed. you could let the actor schedule a poison pill for himself after some idle time, but that looks like ugly design. therefore, what levi ramsey proposes looks like your cleanest option. another one would be to pass an indicator object for the graph state and if that indicates that currently the last element flows through it, a poison pill can be sent after asking.


Related Query

More Query from same tag