Skip to content

feat: add runtime context runnable API#45

Merged
mrcrgl merged 1 commit into
mainfrom
feat/21-runnable-runtime-context
Apr 7, 2026
Merged

feat: add runtime context runnable API#45
mrcrgl merged 1 commit into
mainfrom
feat/21-runnable-runtime-context

Conversation

@mrcrgl

@mrcrgl mrcrgl commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add RunnableWithContext as a convenience API for runnables that should not manage RuntimeGuard directly
  • add RuntimeContext with tick(...) and handle() accessors
  • add RuntimeContextRunnable and with_runtime_context(...) adapter so context-based runnables work with ProcessManager
  • add integration coverage proving reload/shutdown handling works with the context-based API
  • add new runnable example: examples/runtime_context.rs
  • include the new example in CI execution and update docs/changelog

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-features -- -D warnings
  • cargo test --all
  • cargo test --no-default-features
  • timeout 30s cargo run --example simple
  • timeout 45s cargo run --example dynamic_add
  • timeout 30s cargo run --example restart_supervisor
  • timeout 30s cargo run --example runtime_context

Closes #21

@mrcrgl mrcrgl marked this pull request as ready for review April 7, 2026 12:37
@mrcrgl mrcrgl merged commit a28b588 into main Apr 7, 2026
3 checks passed
@mrcrgl mrcrgl deleted the feat/21-runnable-runtime-context branch April 7, 2026 12:37
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.

API: Runnable, consider passing the runtime ticker to process_start

1 participant