WIP: Kotlin Coroutines#1808
Draft
pwrobeldev wants to merge 12 commits into
Draft
Conversation
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>
Hsilgos
reviewed
Jun 24, 2026
| * SPDX-License-Identifier: Apache-2.0 | ||
| * License-Filename: LICENSE | ||
| */ | ||
| package com.here.android.test |
Contributor
There was a problem hiding this comment.
- AsyncDecorator(CancelFunction="cancel") not tested?
- not all EngineError tested?
Contributor
Author
There was a problem hiding this comment.
The additional test case for cancellation has been added.
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
d861fb5 to
e3afc16
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POC