temporalio / sdk-dotnet

Temporal .NET SDK
MIT License
375 stars 30 forks source link

[Feature Request] Create wrappers for commonly-known-safe async calls #303

Closed cretz closed 1 month ago

cretz commented 1 month ago

Describe the solution you'd like

We already have Workflow.WhenAnyAsync because a certain standard library overload was unsafe, same for Workflow.DelayAsync. We might as well add Workflow.WhenAllAsync, Workflow.StartNewTask, and any other common/popular standard library task functions, even though they are safe and will just be one-liners to the underlying implementations. This lets users have confidence in calls on the Workflow class.