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

Refactor methods of Managed_Resource #3460

Merged
merged 8 commits into from
May 18, 2022

Conversation

hubertp
Copy link
Collaborator

@hubertp hubertp commented May 18, 2022

Pull Request Description

Promoted with, take, finalize to be methods of Managed_Resource
rather than static methods always taking resource, for consistency
reasons.

This required function dispatch boilerplate, similarly to Ref.
In future iterations we will address this boilerplate code.

Related to https://www.pivotaltracker.com/story/show/182212217

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the Scala, Java, and Rust style guides.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed: Enso GUI was tested when built using BOTH ./run dist and ./run watch.

Promoted `with`, `take`, `finalize` to be methods of Managed_Resource
rather than static methods always taking `resource`, for consistency
reasons.

This required function dispatch boilerplate, similarly to `Ref`.
In future iterations we will address this boilerplate code.

Related to https://www.pivotaltracker.com/story/show/182212217
@hubertp hubertp added the CI: Ready to merge This PR is eligible for automatic merge label May 18, 2022
@mergify mergify bot merged commit 12d6ef7 into develop May 18, 2022
@mergify mergify bot deleted the wip/hubert/update-managed-resource-182212217 branch May 18, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants