-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use typed channels #97
Conversation
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.
Looks good. It probably makes sense to address the comments that Dave pointed out.
5597335
to
e52a654
Compare
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.
Looks good. I tested it with the engine and there are no new problems.
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.
More simplerest ...
Changes introduced with this PR
This is a follow-on to #96: if the channel instances had been properly typed (to wit, as receive-only), it might not have been possible to close them in the first place (since an attempt to close a receive-only channel results in an error), and that might have alleviated some trouble. So, this PR modifies the
Client.Execute()
interface (and its implementation and subroutines) to declare thereceivedSignals
parameter as a receive-only channel, so that its usage is clearer.In the process of producing that change, it became apparent that we no longer need the
handleStepComplete()
function and therunningSignalReceiveLoops
map, so these were removed, as well as the code supporting them.This PR also includes three other sets of changes:
%w
formatting verb outside of the context of afmt.Errorf()
call:%v
; and,'&s'
; I replaced it with%q
).By contributing to this repository, I agree to the contribution guidelines.