Skip to content

Commit

Permalink
Respond to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Aug 2, 2024
1 parent 8d36fbe commit 9ae2781
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ public static void continueAsNew(
/**
* Returns information about current workflow execution.
*
* <p>Note: Should only be called within the context of a workflow.
* <p>Note: Can only be called within the context of a workflow. Will throw an error if called
* outside a workflow context.
*
* @return current workflow info.
*/
Expand All @@ -353,7 +354,9 @@ public static WorkflowInfo getInfo() {
/**
* Returns information about current workflow update.
*
* <p>Note: Should only be called within the context of a update handler thread in a workflow.
* <p>Note: Should only be called within the context of an update handler thread in a workflow.
* Will return an empty Optional if called outside an update handler thread inside a workflow context. Will throw
* an error if called outside a workflow context.
*
* @return current workflow update info.
*/
Expand Down

0 comments on commit 9ae2781

Please sign in to comment.