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

Async support #293

Closed
SlyNet opened this issue Apr 15, 2016 · 7 comments · Fixed by #426
Closed

Async support #293

SlyNet opened this issue Apr 15, 2016 · 7 comments · Fixed by #426

Comments

@SlyNet
Copy link

SlyNet commented Apr 15, 2016

Establish, Because and It should support async

@NameOfTheDragon
Copy link
Contributor

NameOfTheDragon commented Aug 7, 2017

@SlyNet I would find it helpful if you could give an example of how you would envisage this working and perhaps say something about why it would be useful. From your description, it isn't self-evident to me what you are actually requesting.

@alistair
Copy link

alistair commented Nov 22, 2017

Because i_want_to_handle_async = async () => {
   Result = await httpClient.GetAsync(....)
}

It should_have_the_result_available = () => {
   Result.ShouldNotBeNull();
}

static string Result;

@mikeblakeuk
Copy link
Contributor

mikeblakeuk commented Jul 8, 2020

Any news on this feature?

@robertcoltheart
Copy link
Member

robertcoltheart commented Jul 9, 2020

We've successfully used the above pattern in our code and it works, although it probably shouldn't be relied on. This is slated for 2.0, and for now the usable workaround is just to call Wait() or Result on your calls.

@mikeblakeuk
Copy link
Contributor

mikeblakeuk commented Dec 14, 2020

Is there a 2.0.0 preview we can try?

@mikeblakeuk
Copy link
Contributor

mikeblakeuk commented Jan 24, 2021

We really would love async in our machine spec tests.
Is there a preview branch we can try? Thanks

@robertcoltheart
Copy link
Member

robertcoltheart commented Jan 25, 2021

I was hoping to bundle this with 2.0 but the refactor is taking more time than I'd like. I'll back-port this feature into 1.0 for now. See PR for implementation.

Version 2.0 automation moved this from To do to Done Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Version 2.0
  
Done
Development

Successfully merging a pull request may close this issue.

6 participants