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

Await() doesn't hold on before nested Completes computes the Outcome #63

Open
tjaskula opened this issue Aug 28, 2021 · 0 comments
Open
Labels
bug Something isn't working Completes good for first contribution Good for newcomers

Comments

@tjaskula
Copy link
Contributor

There is a situation in xoom-net-symbio tests where Await() is called on the top parent ICompletes expression but is resolved before the nested one computes it's result. Consider this line

_journal.JournalReader("test").AndThenTo(reader => reader.StreamAll()).Await()

Once the outcome of AndThenTo is computed (reader in that case) the Await() unlocks where it should wait for the result of StreamAll(). There workaround is to split the lines like the following:

var reader = _journal.JournalReader("test").Await();
var all = reader?.StreamAll().Await();

It should be fixed

@tjaskula tjaskula added bug Something isn't working good for first contribution Good for newcomers Completes labels Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Completes good for first contribution Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant