Skip to content

docs: document generator limitations and argument caveats#612

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/docs/generator-retry-caveats/I4fe3ba2d82d1204a7f583b054064999dc1720a03
Feb 24, 2026
Merged

docs: document generator limitations and argument caveats#612
mergify[bot] merged 1 commit intomainfrom
devs/jd/docs/generator-retry-caveats/I4fe3ba2d82d1204a7f583b054064999dc1720a03

Conversation

@jd
Copy link
Owner

@jd jd commented Feb 24, 2026

Fixes #64
Fixes #66
Fixes #138

Document that @Retry does not support generator functions, and that
generators passed as arguments to retried functions will be exhausted
after the first attempt. Include a workaround using factory functions.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Fixes #64
Fixes #66
Fixes #138

Document that @Retry does not support generator functions, and that
generators passed as arguments to retried functions will be exhausted
after the first attempt. Include a workaround using factory functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I4fe3ba2d82d1204a7f583b054064999dc1720a03
@jd jd marked this pull request as ready for review February 24, 2026 16:57
@mergify mergify bot merged commit 0a3ca8a into main Feb 24, 2026
9 checks passed
@mergify mergify bot deleted the devs/jd/docs/generator-retry-caveats/I4fe3ba2d82d1204a7f583b054064999dc1720a03 branch February 24, 2026 16:58
@mergify
Copy link
Contributor

mergify bot commented Feb 24, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-02-24 16:58 UTC
  • Checks passed · in-place
  • Merged2026-02-24 16:58 UTC · at 0be95b1996c6cf75472193cb074ac38e5a0f4e8b

This pull request spent 8 seconds in the queue, with no time running CI.

Required conditions to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

retries not working in a generator context? Need to rewind Generators that are passed as argument Retry for Synchronous Generator

1 participant