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

Re-order deferred result append and Done #6

Closed
wants to merge 1 commit into from
Closed

Conversation

dt
Copy link

@dt dt commented May 23, 2018

As it was, the Done call would be executed before the append, since deferred are run LIFO.
This meant that the program could continue before the full results were appended.

As there are no early returns, moving the append out of a defer works just as well (and eliminates questions about execution order).

Fixes #5.

As it was, the `Done` call would be executed before the append, since deferred are run LIFO.
This meant that the program could continue before the full results were appended.

As there are no early returns, moving the append out of a defer works just as well (and eliminates questions about execution order).
@dt dt closed this Jul 31, 2018
@dt dt deleted the patch-1 branch July 31, 2018 20:14
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.

1 participant