Skip to content

Conversation

@manojdbos
Copy link
Contributor

For async invocation , client required to ignore the return value

() -> (Object) method.invoke(target, args)
);

return null ; // always return null or default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the return type is a primitive type? Will this throw an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was going to add the code. need to return a default value


/**
*
* To be removed: See AsyncInvocationHandler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to keep this for now. Separating sync from async.

@manojdbos manojdbos merged commit d025b4d into main Jun 24, 2025
1 check passed
@chuck-dbos chuck-dbos deleted the async-v2 branch August 25, 2025 20:38
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.

3 participants