Skip to content

Misleading Documentation: self in fromPromise Refers to Promise Actor, Not Parent #466

@029A-h

Description

@029A-h

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions