Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor method injections for clarity and correctness #141

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

paulegradie
Copy link
Owner

@paulegradie paulegradie commented Jan 19, 2024

Description

The original impl of the invocation reflection concerned itself with the discrimination of different types of methods (async, sync, parameterized, non parameterized, etc). This led to poor experience when encountering exceptions or specific edge cases.

Fixes: #139

Results

This PR cleans up the exceptions, simplifies the invocation methods, and allows cancellation tokens to be injected in any method.

@paulegradie paulegradie merged commit 842332c into main Jan 19, 2024
1 check passed
@paulegradie paulegradie deleted the pg/improve-invocation branch January 19, 2024 04:05
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.

Cancellation token cannot be provided for methods that are not marked async
1 participant