ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Setrakyan <dsetrak...@apache.org>
Subject Re: .Net: separate methods for async operations.
Date Mon, 12 Oct 2015 07:12:44 GMT
On Sun, Oct 11, 2015 at 3:42 AM, Vladimir Ozerov <vozerov@gridgain.com>
wrote:

> Guys, let's try keeping this topic focused on .Net please, because the
> product is not released yet and we can create any API we like.
>
> Dima, answering your question about async/await - this is actually native
> continuation support in .Net. Consider the following .Net method:
>
> async void PutAndPrint() {
>     await cache.PutAsync(1, 1);
>
>     Console.WriteLine("Put value to cache.");
> }
>

And what if the method putAsync would return a value. How would this code
change?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message