You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time we use `yield` in a Workflow to wait for an action to complete, a Promise is actually yielded.
38
+
At this point, the IDE and static analyzer usually get lost in type definitions,
39
+
and we experience difficulties and inconveniences because of this.
40
+
However, if the Promise interface had the `@yield` annotation, we could explain to the IDE what type of value we expect to be sent back into the generator from the coroutine.
41
+
Since ReactPHP [isn't yet planning](https://github.com/orgs/reactphp/discussions/536) to add the `@yield` annotation to their promises (Temporal PHP uses ReactPHP promises),
42
+
we suggest using our solution for typing - `VirtualPromise`.
0 commit comments