Reputation: 10667
In Grails 2 I used the Executor plugin to perform multi-threading operations in services and it worked very well. Like most Grails plugins it hasn't been ported over to Grails 3 yet. The GPars library is/was another option for multi-threading, but with Codehaus shutdown I am reluctant to use it.
What is the recommended approach to multi-threading in Grails 3?
Upvotes: 3
Views: 2809
Reputation: 24776
The recommended approach is outlined in Asynchronous Programming section of the documentation. It makes use of GPars and also has some specific Grails features as well.
Upvotes: 3