apache / openwhisk-runtime-dotnet

Apache OpenWhisk Runtime .Net supports Apache OpenWhisk functions written in .Net languages
https://openwhisk.apache.org/
Apache License 2.0
34 stars 28 forks source link

Add example using asynchronous returns #46

Closed rabbah closed 3 years ago

rabbah commented 3 years ago

Currently I don't think there is a way to return a Future from the .NET action, making it less convenient to write asynchronous functions.

shawnallen85 commented 3 years ago

We support async/await methods in the .NET runtime.

https://docs.microsoft.com/en-us/dotnet/csharp/async

The testEchoNoWrite test (in all runtimes) should be calling this method, which is asynchronous.

rabbah commented 3 years ago

Thanks! Indeed this is what I was looking for. We should add this to the docs. The particular use case I ran into was related to making an http request. Retitling.

shawnallen85 commented 3 years ago

This'll be resolved here: https://github.com/apache/openwhisk-runtime-dotnet/pull/50