Skip to content

The rejection value must be an Exception #7

@clue

Description

@clue

The following code is not supported:

$promise = React\Promise\reject(123);

$blocker = new Blocker($loop);

// will fail while trying to `throw 123`
$blocker->await($promise);

At the very least, we should add some documentation.

In the future, we should consider wrapping primitive values in some special Exception sub-class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    easy pickGood for newcomershelp wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions