#Waiting for actor to complete processing event
1 messages · Page 1 of 1 (latest)
Actions are fire-forget; what would make an invoked actor "still processing" to you? Its existence?
lets say i have default state IDLE, when you send an event SUBMIT, it goes to PROCESSING, which invokes a promise to make some db call, and then moves to COMPLETE on done when the promise resolves.... if i send it SUBMIT, id like to return the response when the actor gets to the COMPLETE state
but id like to avoid doing a waitFor state.matches("COMPLETE") because this same thing is happening across various parallel states and i dont want to write a matcher for each one, i wanted to know if there is a way to know if the actor has no more promises its waiting for