Skip to content

Conversation

@joshjennings98
Copy link
Contributor

Description

Add support for more context when returning from RunActionWithParallelCheck

Test Coverage

  • This change is covered by existing or additional automated tests.
  • Manual testing has been performed (and evidence provided) as automated testing was not feasible.
  • Additional tests are not required for this change (e.g. documentation update).

}

// RunActionWithParallelCheck runs an action with a check in parallel
// The function performing the check should return true if the check was favourable; false otherwise.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you be more explicit with what you mean by favourable. COuld you also defined the function as a type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to need some of your input on this as it is based on your previous function docstring https://github.com/ARM-software/golang-utils/blame/master/utils/parallelisation/parallelisation.go#L214

If we can agree on better wording I can update all the callers that use that wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pulled the functions out as types but just so you are aware, gopls won't suggest the underlying function as the type if you try to use them so if you haven't memorised the type signature then you have to go to the definition of the type just to be able to write it, therefore I tend to prefer the lambdas etc.

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.

3 participants