thana
12/11/2020, 11:34 AMnicholasnet
12/11/2020, 2:53 PMJoel
12/11/2020, 4:09 PMJoel
12/11/2020, 4:13 PMwithContext(<http://Dispatchers.IO|Dispatchers.IO>)
to offload them to a thread pool specifically for this purpose. The only gotcha I have found in spring-security is that method authorization (i.e. @PreAuthorize
, etc) are not compatible with suspending functions. But it's easy enough to wrap with a mono i.e. fun index() = mono { // now I am in a suspended context }
.thana
12/11/2020, 4:33 PMJoel
12/11/2020, 8:25 PMJoel
12/11/2020, 8:25 PMGary
12/12/2020, 3:36 AMsdeleuze
12/14/2020, 2:22 PMsdeleuze
12/14/2020, 2:22 PMsdeleuze
12/14/2020, 2:23 PMsdeleuze
12/14/2020, 2:24 PMsdeleuze
12/14/2020, 2:26 PMsdeleuze
12/14/2020, 2:27 PMthana
12/14/2020, 3:08 PMsdeleuze
12/14/2020, 3:10 PMthana
12/14/2020, 3:22 PM