-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix type parameter for expectWorker accepting Worker instance. #969
Fix type parameter for expectWorker accepting Worker instance. #969
Conversation
e041de0
to
3455e30
Compare
The worker type should be unbounded, _not_ the same as the _Workflow's_ output type.
3455e30
to
624e3b6
Compare
Fixed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I clicked wrong buttons so re-approving
key: String = "", | ||
output: EmittedOutput<OutputT>? = null | ||
output: EmittedOutput<Any?>? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how you "fake" an output from this worker. This type is the type of the output from the worker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh duhhh.
The worker type should be unbounded, not the same as the Workflow's output type.