Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions temporalio/workflow/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,11 @@ async def wait_condition(
This function returns when the callback returns true (invoked each loop
iteration) or the timeout has been reached.

Importantly, using `None` value for ``timeout`` means that no Temporal timer is created. This
means changing from `None` to a positive value (or the inverse) constitutes a nondeterministic
change to workflow code. Using ``0`` will cause this function to immediately throw a timeout and
should not be used.

Args:
fn: Non-async callback that accepts no parameters and returns a boolean.
timeout: Optional number of seconds to wait until throwing
Expand Down
Loading