diff --git a/src/Temporalio/Client/Schedules/Schedule.cs b/src/Temporalio/Client/Schedules/Schedule.cs
index 2d145ad1..47da933d 100644
--- a/src/Temporalio/Client/Schedules/Schedule.cs
+++ b/src/Temporalio/Client/Schedules/Schedule.cs
@@ -30,10 +30,10 @@ public record Schedule(
/// Proto.
/// Data converter.
/// Converted value.
- internal static Schedule FromProto(
+ internal static async Task FromProtoAsync(
Api.Schedule.V1.Schedule proto, DataConverter dataConverter) =>
new(
- Action: ScheduleAction.FromProto(proto.Action, dataConverter),
+ Action: await ScheduleAction.FromProtoAsync(proto.Action, dataConverter).ConfigureAwait(false),
Spec: ScheduleSpec.FromProto(proto.Spec))
{
Policy = SchedulePolicy.FromProto(proto.Policies),
diff --git a/src/Temporalio/Client/Schedules/ScheduleAction.cs b/src/Temporalio/Client/Schedules/ScheduleAction.cs
index afd10966..e20eb374 100644
--- a/src/Temporalio/Client/Schedules/ScheduleAction.cs
+++ b/src/Temporalio/Client/Schedules/ScheduleAction.cs
@@ -16,12 +16,13 @@ public abstract record ScheduleAction
/// Proto.
/// Data converter.
/// Converted value.
- internal static ScheduleAction FromProto(
+ internal static async Task FromProtoAsync(
Api.Schedule.V1.ScheduleAction proto, DataConverter dataConverter)
{
if (proto.StartWorkflow != null)
{
- return ScheduleActionStartWorkflow.FromProto(proto.StartWorkflow, dataConverter);
+ return await ScheduleActionStartWorkflow.FromProtoAsync(
+ proto.StartWorkflow, dataConverter).ConfigureAwait(false);
}
else
{
diff --git a/src/Temporalio/Client/Schedules/ScheduleActionStartWorkflow.cs b/src/Temporalio/Client/Schedules/ScheduleActionStartWorkflow.cs
index 4882a3af..51cd6fe5 100644
--- a/src/Temporalio/Client/Schedules/ScheduleActionStartWorkflow.cs
+++ b/src/Temporalio/Client/Schedules/ScheduleActionStartWorkflow.cs
@@ -84,7 +84,7 @@ public static ScheduleActionStartWorkflow Create(
/// Proto.
/// Data converter.
/// Converted value.
- internal static ScheduleActionStartWorkflow FromProto(
+ internal static async Task FromProtoAsync(
Api.Workflow.V1.NewWorkflowExecutionInfo proto, DataConverter dataConverter)
{
IReadOnlyCollection