Skip to content

Commit

Permalink
Merge pull request #41 from matrei/patch-1
Browse files Browse the repository at this point in the history
Update events.adoc
  • Loading branch information
JasonTypesCodes authored Dec 28, 2022
2 parents b874fab + fef1ce0 commit 8ec433f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/docs/guide/events.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To use the Grails Events abstraction you should add a dependency on the `events`
runtime "org.grails.plugins:events:{version}"
----

If no asynchronous framework in present on the classpath then by default Grails creates an EventBus based off of the currently active `PromiseFactory`. The default implementation is link:{api}/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html[CachedThreadPoolPromiseFactory] which uses a thread pool that will create threads as needed (the same as `java.util.concurrent.Executors.newCachedThreadPool()`).
If no asynchronous framework is present on the classpath then by default Grails creates an EventBus based off of the currently active `PromiseFactory`. The default implementation is link:{api}/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html[CachedThreadPoolPromiseFactory] which uses a thread pool that will create threads as needed (the same as `java.util.concurrent.Executors.newCachedThreadPool()`).

If you wish to use a popular async framework such as RxJava as the `EventBus` implementation then you will need to add the appropriate dependency. For example for RxJava 1.x:

Expand Down

0 comments on commit 8ec433f

Please sign in to comment.