Skip to content

Commit 21261cb

Browse files
authored
[macros] Clarify introspection StateError on retry. (#3551)
1 parent d0d1659 commit 21261cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

working/macros/feature-specification.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,10 @@ finish.
594594
If a cycle arises in macro applications waiting for other macro applications to
595595
complete then a `StateError ` is thrown.
596596

597+
Subsequent introspection calls on the same target will always throw
598+
`StateError`, even if all macro applications on the target have finished, to
599+
ensure a deterministic outcome.
600+
597601
Rules might be added in future to decide in some specific cases which macro
598602
should run with incomplete introspection results to break a cycle. For example,
599603
there might be a rule specifying that an application to a superclass runs first

0 commit comments

Comments
 (0)