3

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?

4

1 回答 1

3

文档的异步编程部分概述了推荐的方法。它利用 GPars 并且还具有一些特定的 Grails 功能。

于 2015-06-01T19:49:17.043 回答