swiftlang / swiftlang/swift-java

jextract: should handle asynchronous swift functions

Open
#392 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:jextract
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

It should be possible to call async swift functions from java, and either returning some form of future. We may not be able to hook into JVM's continuation (it is jdk internal), however we should explore what we can do here, including blocking in swift side perhaps...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating jextract's handling of async Swift functions and the existing Swift-to-Java interop path. Clarify whether the supported design should return a future-like value or block on the Swift side, and define the expected behavior for callers before implementation begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, swift
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.