Skip to content

Commit 4c85076

Browse files
committed
await example
1 parent fa50d63 commit 4c85076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Demos/MicroWorkflow.Tests/DocumentationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public async Task<ExecutionResult> ExecuteAsync(Step step)
6565

6666
// ... stuff
6767

68-
return step.Done();
68+
return await Task.FromResult(step.Done());
6969
}
7070
}
7171

@@ -82,7 +82,7 @@ public async Task<ExecutionResult> ExecuteAsync(Step step)
8282

8383
// ... fetch data
8484

85-
return step.Rerun(scheduleTime: step.ExecutionStartTime!.Value.AddHours(1));
85+
return await Task.FromResult(step.Rerun(scheduleTime: step.ExecutionStartTime!.Value.AddHours(1)));
8686
}
8787
}
8888

0 commit comments

Comments
 (0)