Skip to content

Commit 182884e

Browse files
committed
Make 0 make more sense
1 parent 6c8e002 commit 182884e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎temporalio/workflow/_context.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,10 @@ async def wait_condition(
928928
This function returns when the callback returns true (invoked each loop
929929
iteration) or the timeout has been reached.
930930
931-
Importantly, using a `0` or `None` value for `timeout` means that no Temporal timer is created.
932-
This means changing from either of those values to a positive value (or the inverse) constitutes
933-
a nondeterministic change to workflow code.
931+
Importantly, using `None` value for ``timeout`` means that no Temporal timer is created. This
932+
means changing from `None` to a positive value (or the inverse) constitutes a nondeterministic
933+
change to workflow code. Using ``0`` will cause this function to immediately throw a timeout and
934+
should not be used.
934935
935936
Args:
936937
fn: Non-async callback that accepts no parameters and returns a boolean.

0 commit comments

Comments
 (0)