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 version of FunctionsStartup #43

Open
a-vishar opened this issue Jun 8, 2020 · 9 comments
Open

async version of FunctionsStartup #43

a-vishar opened this issue Jun 8, 2020 · 9 comments
Milestone

Comments

@a-vishar
Copy link

a-vishar commented Jun 8, 2020

I have code which was written async first in my FunctionsStartup.Configure method. I would rather not transition from sync to async and back again if I can avoid it.

Similar to the introduction of async Main methods, would it be possible to introduce an async Configure method in FunctionsStartup?

@a-vishar
Copy link
Author

@fabiocav - Is this repo no longer maintained?

@a-vishar
Copy link
Author

Any update on this?

1 similar comment
@a-vishar
Copy link
Author

a-vishar commented Jul 7, 2020

Any update on this?

@fabiocav
Copy link
Member

fabiocav commented Jul 8, 2020

@a-vishar this is something we could consider, but don't have immediate plans to address.

Can you please share more details on your use case?

@fabiocav fabiocav added this to the Triaged milestone Jul 8, 2020
@JKamsker
Copy link

Loading configurations from the blob storage or any kind of db on startup would be a(/my) use case. @fabiocav

@a-vishar
Copy link
Author

Prewarming (their api is async) a COSMOS client (as per their best practice doc) so that the connection is "live" for the first customer call on a premium function.

@brettsam
Copy link
Member

@fabio -- wouldn't we ultimately have to wait for .NET Core to support async configuration to make it truly async? We could expose a Task here -- but we'd just have to call .GetAwaiter().GetResult() on it.

Example: dotnet/runtime#36395, which shows that even the KeyVault config provider calls .GetAwaiter().GetResult();

@fabiocav
Copy link
Member

Currently, there would be no real benefit without proper support to make this truly asynchronous. We'll leave this open, but as stated above, this work will not be prioritized.

@HolisticDeveloper
Copy link

dotnet/aspnetcore#24142 has some discussion for the same concern in ASP.NET Core startup which may be relevant to FunctionsStartup.

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

No branches or pull requests

5 participants