now i want to play with coroutines and change my `...
# spring
n
now i want to play with coroutines and change my
router
to a
corrouter
but the latter expects a
ServerResponse
, not a
Mono<ServerResponse>
every example i see the function that generates/read the data is
suspend
and returns
T
so shall i understand in that case,
corrouter
is not a good fit? or did i miss something?
n
i have it doesn’t use spring data r2DBC and that’s what i describe above:
the function that generates/read the data is 
suspend
 and returns 
T
whereas my code is generated:
Copy code
interface PersonRepository : ReactiveSortingRepository<Person, Long>
which allows me the following:
Copy code
val mono: Mono<Person> = repository.findById(id)
r
n
exactly what i missed thanks @Robert Jaros