Skip to content

Commit 1e49493

Browse files
authored
Add comment on Workflow#newQueue (#1747)
1 parent 4f91956 commit 1e49493

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ public static Promise<Void> newTimer(Duration delay) {
473473
return WorkflowInternal.newTimer(delay);
474474
}
475475

476+
/**
477+
* @deprecated use {@link #newWorkflowQueue(int)} instead. An implementation returned by this
478+
* method has a bug.
479+
*/
476480
@Deprecated
477481
public static <E> WorkflowQueue<E> newQueue(int capacity) {
478482
return WorkflowInternal.newQueue(capacity);

0 commit comments

Comments
 (0)