-
Notifications
You must be signed in to change notification settings - Fork 119
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
defer() pattern tasks #1125
Comments
Both in #1122 (TBD if we will remove or not).
|
Tutorial:
Other:
That seems to be all the cases on Discourse, so hopefully that (plus the already done API docs) should be everywhere. |
@benhoyt could you please take a look at these suggested changes to that doc? Happy to schedule a call to go over them together if that works best. |
@tonyandrewmeyer Added a couple of comments. I think there's more work to be done on that doc, but I think the improvements you've made are all in the right direction -- thanks! |
I've reviewed all the use of In short: I didn't find any charm where there are significant areas for improvement in |
@benhoyt would you be able to find some time this week to review this guidance doc? Thanks! |
Follow-up actions from the defer analysis:
Maybe some additional reach-outdefer()
on juju.is.docs/sdk, but they are all explaining whatdefer()
does, and already have appropriate wording around taking care with its use, and don't seem to need anything additionalSDK- this has a good section on taking care when deciding ifdefer()
should be used, and two examples of where it's not a good choice. This is already one of the longest method docstrings we have - I don't think it's the right place to go into more detail (at most we could add a link to more documentation)The text was updated successfully, but these errors were encountered: