Skip to content

Add Kotlin extension for Standalone Activity Client#2923

Open
444am wants to merge 2 commits into
temporalio:masterfrom
444am:444am/saa-kotlin-ext
Open

Add Kotlin extension for Standalone Activity Client#2923
444am wants to merge 2 commits into
temporalio:masterfrom
444am:444am/saa-kotlin-ext

Conversation

@444am

@444am 444am commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What was changed

Add Kotlin extension funcs for Standalone Activity Client & its options

Why?

Workflow Client has Kotlin extension funcs in-place, but Standalone Activity Client hasn't got equivalent extensions

How was this tested:

See the new UT file.

@444am 444am requested a review from a team as a code owner June 19, 2026 05:02
*
* @see ActivityClient.newInstance
*/
fun ActivityClient(

@444am 444am Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As Standalone Activity is yet supported in test-server, this Kotlin extension file is not able to be tested in a way similar to WorkflowClientExt.

I was planning to leverage a temp Activity Client impl like here, but thinking further this means if iface contract changed in the future, the temp client would need to be changed too, which is troublesome.

Eventually I decide to not put UT on this file as of now because Kotlin extension funcs are more about expressiveness than correctness concern. LMK if it's okay for you.

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.

1 participant