© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
26 replies
SiloCitizen3

✅ async/await Task in an AWS Lambda

Given the following code
var someWorkTasks = Task.Run(async () =>
{
    ....
});
var someWorkTasks = Task.Run(async () =>
{
    ....
});


without explicitly doing
await someWorkTasks;
await someWorkTasks;
it is possible that the lambda execution will get cut off/finish before that has a change to complete, right?
I'm not insane? I need to explicitly
await someWorkTasks;
await someWorkTasks;
to ensure everything inside it finished, right?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ✅ Baffled by Async-Await and Task
C#CC# / help
4y ago
catching an exception in an async Task [Answered]
C#CC# / help
4y ago
An async function called without await
C#CC# / help
2y ago
✅ Redis Cloud in AWS Lambda
C#CC# / help
9mo ago