Skip to content

WIP: Kotlin Coroutines#1808

Closed
pwrobeldev wants to merge 12 commits into
masterfrom
pwrobeldev/kotlin-coroutines
Closed

WIP: Kotlin Coroutines#1808
pwrobeldev wants to merge 12 commits into
masterfrom
pwrobeldev/kotlin-coroutines

Conversation

@pwrobeldev

Copy link
Copy Markdown
Contributor

POC

Two new LIME attributes are added:
 - 'AsyncCallbackMetadata' which will be used for lambda definitions
   that are used as asynchronous callbacks
 - 'AsyncDecorator' which will be used for functions for which we want
   to generate decorator functions that rely on coroutines

The validation of parsed values will be introduced in a separate commit.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
The new classes can be obtained for LimeFunction and LimeLambda.
The encapsulate the logic related to handling the most important
field related to async decorators.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
This commit brings the expected output for the old-style
asynchronous functions -- without decorator.

It will be extended in the next commit by the usage of
the decorators.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
We must deduce the type to return from suspending function.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
When async decorator and async metadata is used,
then additional suspending overload is generated.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Comment thread functional-tests/functional/input/lime/AsyncDecorator.lime Outdated
Comment thread functional-tests/functional/input/src/cpp/AsyncDecorator.cpp Outdated
Comment thread functional-tests/functional/input/src/cpp/AsyncDecorator.cpp Outdated
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev pwrobeldev force-pushed the pwrobeldev/kotlin-coroutines branch from d861fb5 to e3afc16 Compare June 25, 2026 06:07
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev

Copy link
Copy Markdown
Contributor Author

I am closing the PR -- this was a POC. The proper PR will be created with the final solution.

@pwrobeldev pwrobeldev closed this Jun 30, 2026
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