Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`Async.function`/`Async.procedure` with a Kotlin method reference spawns a WorkflowThread per call instead of inlining, as it does the Java equivalent

Đang mở
#2,981 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@dplyukhin đang làm issue này rồi.

Từ ngày 11/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Expected Behavior

A Kotlin method reference to a stub is inlined like the Java equivalent, and shouldn't consume a workflow thread per call.

Actual Behavior

When a workflow uses Async.function / Async.procedure with a Kotlin method reference to an
activity (or child workflow) stub, the SDK does not run the call inline. It spawns one
WorkflowThread per call. A wide fan-out therefore holds one workflow-pool thread per in-flight
activity

The equivalent Java code is inlined and uses a single workflow thread.

Steps to Reproduce the Problem

see the attached code

code.zip

Specifications

  • Version: 1.33.0
Ngôn ngữ chính
Java
Star
433
Fork
249
Merge trung bình
6 ngày 5 giờ
Pull request đã merge (30 ngày)
25

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/sdk-java

Tất cả issue của temporalio/sdk-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.