Commits
Click on a commit to change the comparison rangeMigrate flow_runs functions from sync_compatible to async_dispatch
This PR migrates pause_flow_run, suspend_flow_run, and resume_flow_run from the sync_compatible decorator to the async_dispatch pattern.
Since these functions involve complex async operations (event subscriptions, waiting, polling), the sync versions are implemented as thin wrappers using run_coro_as_sync rather than full reimplementations.
Changes:
- Renamed async functions with 'a' prefix (apause_flow_run, etc.)
- Created sync versions that use run_coro_as_sync to call async versions
- Added async_dispatch decorator to connect sync/async implementations
- Added tests to verify correct dispatch behavior
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com> Fix suspend_flow_run async dispatch by removing @inject_client from sync version
The @inject_client decorator always returns an async function, which was interfering
with the async_dispatch pattern. The client injection should only be on the async
version (asuspend_flow_run) to maintain proper dispatch behavior in sync contexts.
This fixes the failing test_flow_is_suspended[sync] test where suspend_flow_run
was incorrectly returning a coroutine in sync flows.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>