Trying to write a exportservice run in background. logic :
1: when user click on export button
2: that export feature will run in backgound. and user will continue other work.. no need to wait until export feature complete
I am using grails 2.3.11
you can use the @DelegateAsync keyword on your service methods to get them executed by the global executor service.
The documentation also describes how to handle result events : https://grails.github.io/grails-doc/latest/guide/async.html