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

Make repository functions suspending #22

Merged

Conversation

nkly-wolt
Copy link
Collaborator

Add suspend modifier to the functions in
IdempotentResponseRepository interface. The change enables usage of async clients (e.g. kreds or jooq-r2dbc) in repository implementation without runBlocking while requiring almost no changes to existing blocking implementations.

@nkly-wolt nkly-wolt requested a review from muatik as a code owner August 21, 2024 09:44
@nkly-wolt nkly-wolt force-pushed the make-repository-interface-suspending branch from 165de73 to c30d03d Compare August 26, 2024 07:55
Add `suspend` modifier to the functions in
`IdempotentResponseRepository` interface. The change enables usage of
async clients (e.g. [kreds][1] or jooq-r2dbc) in repository
implementation without `runBlocking` while requiring almost no changes
to existing blocking implementations.

[1]: https://github.com/crackthecodeabhi/kreds
@nkly-wolt nkly-wolt force-pushed the make-repository-interface-suspending branch from c30d03d to c18465b Compare August 26, 2024 08:08
@nkly-wolt nkly-wolt merged commit 8eb4d86 into woltapp:main Aug 26, 2024
4 checks passed
@nkly-wolt nkly-wolt deleted the make-repository-interface-suspending branch August 26, 2024 09:03
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.

2 participants