Skip to content

Commit

Permalink
Merge pull request #3981 from kaibocai/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect doc for java sdk
  • Loading branch information
hhunter-ms authored Jan 29, 2024
2 parents 77a9d85 + 9ff3dfd commit 518ef8b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,8 @@ public class MonitorWorkflow extends Workflow {
}

// Put the workflow to sleep until the determined time
// Note: ctx.createTimer() method is not supported in the Java SDK yet
try {
TimeUnit.SECONDS.sleep(nextSleepInterval.getSeconds());
ctx.createTimer(nextSleepInterval);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down Expand Up @@ -745,4 +744,4 @@ External events don't have to be directly triggered by humans. They can also be
- Try out the following examples:
- [Python](https://github.com/dapr/python-sdk/tree/master/examples/demo_workflow)
- [.NET](https://github.com/dapr/dotnet-sdk/tree/master/examples/Workflow)
- [Java](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/workflows)
- [Java](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/workflows)

0 comments on commit 518ef8b

Please sign in to comment.