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

Use afterFinally in examples #1093

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Conversation

NiteshKant
Copy link
Collaborator

Motivation

We currently use whenFinally to decrement the countdown latch. As whenFinally uses beforeFinally, latch is decrementing before the output is printed.

Modification

Use afterFinally instead of whenFinally

Result

Examples print the output correctly.

__Motivation__

We currently use `whenFinally` to decrement the countdown latch. As `whenFinally` uses `beforeFinally`, latch is decrementing before the output is printed.

__Modification__

Use `afterFinally` instead of `whenFinally`

__Result__

Examples print the output correctly.
@NiteshKant NiteshKant requested a review from Scottmitch July 10, 2020 02:18
@NiteshKant NiteshKant merged commit 9bcde10 into apple:master Jul 10, 2020
@NiteshKant NiteshKant deleted the ex-after-finally branch July 10, 2020 16:34
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.

2 participants