Skip to content

Commit ecb64cf

Browse files
authored
Add comment for Await (#973)
1 parent 56bd862 commit ecb64cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workflow/deterministic_wrappers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ type (
4949
WaitGroup = internal.WaitGroup
5050
)
5151

52-
// Blocks the calling thread until condition() returns true
52+
// Blocks the calling thread until condition() returns true.
53+
// Do not mutate values or trigger side effects inside condition.
5354
// Returns CanceledError if the ctx is canceled.
5455
// The following code is going to block until the captured count
5556
// variable is set to 5.

0 commit comments

Comments
 (0)