Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support kotlin coroutines #486

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

wplong11
Copy link

@wplong11 wplong11 commented Jul 31, 2022

Resolves: #383

Inspired by https://github.com/stas29a/coroutine-feign-client

TODO

  • Separate Kotlin support module
  • Enhance test case
  • Refactoring
  • Clean up pom.xml

wplong11 added a commit to wplong11/feign that referenced this pull request Jul 31, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Jul 31, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Aug 1, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Aug 1, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Aug 1, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
Resolves: PlaytikaOSS#383

Inspired by https://github.com/stas29a/coroutine-feign-client

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Aug 2, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Sep 3, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
wplong11 added a commit to wplong11/feign that referenced this pull request Sep 8, 2022
Resolves: OpenFeign#1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml
velo added a commit to OpenFeign/feign that referenced this pull request Sep 14, 2022
* Support kotlin coroutines

Resolves: #1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml

* Apply optional dependency to kotlin support related dependency

* Seperate Kotlin support module

* Remove unused code from ClassUtils.java

* Remove unused code from ClassUtils.java

* Refactor KotlinDetector

* Move ClassUtils location into KotlinDetector

* Move KotlinDetector location

* Format code

* First attempt to move kotlin work to it's own isolated module

* Coroutine Feign using AyncFeign

* Coroutine Feign using AyncFeign

* Refactor suspending function  detect logic

- Remove KotlinDetector.java
- Add Method.isSuspend extension function

* Cleanup CoroutineFeignTest test code format

* Fix suspend function contract parsing error when using http body

* Rename test names to be meaningful

* Add Github Example With Coroutine

- Copy of GithubExample

* Remove unnecessary dependency

https://github.com/OpenFeign/feign/pull/1706/files#r965389041

Co-authored-by: Marvin Froeder <[email protected]>
Co-authored-by: Marvin Froeder <[email protected]>
@AdRyAniP
Copy link

AdRyAniP commented Dec 2, 2022

Any update on this? Would be nice to have this feature!

@wplong11
Copy link
Author

wplong11 commented Dec 2, 2022

@AdRyAniP OpenFeign 12 supports Coroutine (but experimental)
OpenFeign/feign#1706

@amitojduggal
Copy link

Planning to merge this one soon @wplong11 ?, its looking good.

@thisishantzz
Copy link

thisishantzz commented Sep 4, 2024

Any idea on when this PR will be merged? It would be great to have this feature here even though openfeign supports coroutines. @wplong11

velo added a commit to OpenFeign/feign that referenced this pull request Oct 7, 2024
* Support kotlin coroutines

Resolves: #1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml

* Apply optional dependency to kotlin support related dependency

* Seperate Kotlin support module

* Remove unused code from ClassUtils.java

* Remove unused code from ClassUtils.java

* Refactor KotlinDetector

* Move ClassUtils location into KotlinDetector

* Move KotlinDetector location

* Format code

* First attempt to move kotlin work to it's own isolated module

* Coroutine Feign using AyncFeign

* Coroutine Feign using AyncFeign

* Refactor suspending function  detect logic

- Remove KotlinDetector.java
- Add Method.isSuspend extension function

* Cleanup CoroutineFeignTest test code format

* Fix suspend function contract parsing error when using http body

* Rename test names to be meaningful

* Add Github Example With Coroutine

- Copy of GithubExample

* Remove unnecessary dependency

https://github.com/OpenFeign/feign/pull/1706/files#r965389041

Co-authored-by: Marvin Froeder <[email protected]>
Co-authored-by: Marvin Froeder <[email protected]>
velo added a commit to OpenFeign/feign that referenced this pull request Oct 8, 2024
* Support kotlin coroutines

Resolves: #1565

Inspired by PlaytikaOSS/feign-reactive#486

## TODO

- [ ] Separate Kotlin support module
- [ ] Enhance test case
- [ ] Refactoring
- [ ] Clean up pom.xml

* Apply optional dependency to kotlin support related dependency

* Seperate Kotlin support module

* Remove unused code from ClassUtils.java

* Remove unused code from ClassUtils.java

* Refactor KotlinDetector

* Move ClassUtils location into KotlinDetector

* Move KotlinDetector location

* Format code

* First attempt to move kotlin work to it's own isolated module

* Coroutine Feign using AyncFeign

* Coroutine Feign using AyncFeign

* Refactor suspending function  detect logic

- Remove KotlinDetector.java
- Add Method.isSuspend extension function

* Cleanup CoroutineFeignTest test code format

* Fix suspend function contract parsing error when using http body

* Rename test names to be meaningful

* Add Github Example With Coroutine

- Copy of GithubExample

* Remove unnecessary dependency

https://github.com/OpenFeign/feign/pull/1706/files#r965389041

Co-authored-by: Marvin Froeder <[email protected]>
Co-authored-by: Marvin Froeder <[email protected]>
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.

Support kotlin coroutines
4 participants