In the implementation of fromPromise, a self parameter is passed to the promise when it is executed. The documentation currently describes it as:
"The parent actor of the promise actor"
However, I suspect that self is actually a reference to the newly created promise actor itself.
I'm sending an event to the parent of the fromPromise actor. When I pass:
input: ({ self, context: { foo } }) => ({ foo, parent: self })
…it works as expected.
If the self parameter does indeed refer to the promise actor (not its parent), the documentation should be updated to clarify this.
Code