You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MVC link builder has some great Kotlin extensions that reduce the boilerplate code quite a lot. But when using reactive, which is quite a valid use case when using Kotlin, there is no such support. Writing model assemblers for both reactive and coroutine controllers is cumbersome.
This pull request would simplify model assemblers in these cases: #2228.
Here's a sample diff of how I could change an existing reactive model assembler with the PR:
Here's a another example for the introduced coroutine assembler:
Also, in the controller, I do not have to add awaitSingle() after every call of the assembler.
The text was updated successfully, but these errors were encountered:
huberchrigu
changed the title
Improve
Add Kotlin extensions for reactive link builders
Oct 15, 2024
The MVC link builder has some great Kotlin extensions that reduce the boilerplate code quite a lot. But when using reactive, which is quite a valid use case when using Kotlin, there is no such support. Writing model assemblers for both reactive and coroutine controllers is cumbersome.
This pull request would simplify model assemblers in these cases: #2228.
Here's a sample diff of how I could change an existing reactive model assembler with the PR:
Here's a another example for the introduced coroutine assembler:
Also, in the controller, I do not have to add
awaitSingle()
after every call of the assembler.The text was updated successfully, but these errors were encountered: