Hi, is it ok to use suspend function in bean publi...
# spring
e
Hi, is it ok to use suspend function in bean public methods? Special in Webflux version..
s
Are you using the experimental Coroutines support from Spring Fu or https://github.com/konrad-kaminski/spring-kotlin-coroutine ?
My general advice about Coroutines + Spring is to advise waiting the official support to be ready and cold stream support finished (target is Spring Framework 5.2).
From my POV Coroutines can not be really rated as non experimental without cold stream support.
e
No, at this time I have try to use it in spring boot 2 project
s
Even if I understand JB reasons for advertising it as final.
I would advise to wait next year with the official support then.
There are good reasons why this is not supported yet.
e
thanks @sdeleuze
s
You're welcome 🙂