This course has been updated! We now recommend you take the State Machines in JavaScript with XState, v2 course.
Transcript from the "Actor Model Exercise" Lesson
[00:00:00]
>> So in exercise 12, we're saying that instead of a fire and forget action, which cannot communicate back directly to a machine, we wants to instead invoke an actor. Because remember, actors can send messages back to their parents. And so to do that, we're going to be using the invoke property in x date, and so that's going to invoke a promise that eventually resolves with a value or it could reject with a value.
[00:00:27] And based on what happens with events we get, we could transition to the appropriate states.