Skip to content
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

Add ability to return the results of callable #314

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

grantholle
Copy link
Contributor

@grantholle grantholle commented Sep 2, 2023

This adds the ability to return the results of a callable rather than an instance of Ray. If the closure has a return type, assume that the results of the callable should be returned rather than Ray.

This started as #313 but did a little research and think this is a pretty elegant solution that gets the best of both worlds!

This adds the ability to return the results of a callable rather than an instance of `Ray`. If the closure has a return type, assume that the results of the callable should be return rather than `Ray`.
@freekmurze
Copy link
Member

Could you also add an example of this behaviour to the docs?

@grantholle
Copy link
Contributor Author

No problem, submitted #834. Thanks!

@freekmurze freekmurze merged commit 5028ae4 into spatie:main Sep 4, 2023
24 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants