Skip to content

Commit

Permalink
Deploying to gh-pages - 14:24:50
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Mar 20, 2024
1 parent 76b76ef commit ef8c8b4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions snapshot/guide/asyncGorm.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1 id="asyncGorm">4 Asynchronous GORM</h1>
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
Although GORM executes persistence operations asynchronously, these operations still block as the underlying database drivers are not asynchronous. Asynchornous GORM is designed to allow you to isolate these blocking operations onto a separate thread you can scale and control allowing your controller layer to remain non-blocking.
Although GORM executes persistence operations asynchronously, these operations still block as the underlying database drivers are not asynchronous. Asynchronous GORM is designed to allow you to isolate these blocking operations onto a separate thread you can scale and control allowing your controller layer to remain non-blocking.
</td>
</tr>
</table>
Expand All @@ -129,7 +129,7 @@ <h3 id="_the_asyncentity_trait">The AsyncEntity Trait</h3>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">compile <span class="string"><span class="delimiter">&quot;</span><span class="content">org.grails:grails-datastore-gorm-async</span><span class="delimiter">&quot;</span></span></code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation <span class="string"><span class="delimiter">&quot;</span><span class="content">org.grails:grails-datastore-gorm-async</span><span class="delimiter">&quot;</span></span></code></pre>
</div>
</div>
<div class="paragraph">
Expand All @@ -140,7 +140,7 @@ <h3 id="_the_asyncentity_trait">The AsyncEntity Trait</h3>
<pre class="CodeRay highlight"><code data-lang="groovy"><span class="keyword">import</span> <span class="include">grails.gorm.async.*</span>

<span class="type">class</span> <span class="class">MyEntity</span> <span class="directive">implements</span> AsyncEntity&lt;MyEntity&gt; {
...
<span class="comment">//...</span>
}</code></pre>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions snapshot/guide/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h1 id="events">3 Events</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails.plugins:events:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation "org.grails.plugins:events:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand All @@ -153,7 +153,7 @@ <h1 id="events">3 Events</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails:grails-events-rxjava:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">runtimeOnly "org.grails:grails-events-rxjava:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down
20 changes: 10 additions & 10 deletions snapshot/guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h1 id="promises">2 Promises</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails.plugins:async:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation "org.grails.plugins:async:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="sect2">
Expand Down Expand Up @@ -225,15 +225,15 @@ <h3 id="_promise_basics">Promise Basics</h3>
<div class="sect2">
<h3 id="_the_promisefactory_interface">The PromiseFactory Interface</h3>
<div class="paragraph">
<p>By default the <code>Promises</code> static methods use an instance of <code>PromiseFactory</code>. This <code>PromiseFactory</code> interface has various implementations. The default implementation is <a href="../api/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html">CachedThreadPoolPromiseFactory</a> which uses a thread pool that will create threads as needed (the same as <code>java.util.concurrent.Executors.newCachedThreadPool()</code>)</p>
<p>By default, the <code>Promises</code> static methods use an instance of <code>PromiseFactory</code>. This <code>PromiseFactory</code> interface has various implementations. The default implementation is <a href="../api/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html">CachedThreadPoolPromiseFactory</a> which uses a thread pool that will create threads as needed (the same as <code>java.util.concurrent.Executors.newCachedThreadPool()</code>)</p>
</div>
<div class="paragraph">
<p>However, the design of the Grails promises framework is such that you can swap out the underlying implementation for your own or one of the pre-supported implementations. For example to use RxJava 1.x simply add the RxJava dependency to <code>build.gradle</code>:</p>
</div>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails:grails-async-rxjava:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">runtimeOnly "org.grails:grails-async-rxjava:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down Expand Up @@ -477,7 +477,7 @@ <h1 id="events">3 Events</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails.plugins:events:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation "org.grails.plugins:events:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand All @@ -489,7 +489,7 @@ <h1 id="events">3 Events</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails:grails-events-rxjava:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">runtimeOnly "org.grails:grails-events-rxjava:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down Expand Up @@ -861,7 +861,7 @@ <h1 id="asyncGorm">4 Asynchronous GORM</h1>
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
Although GORM executes persistence operations asynchronously, these operations still block as the underlying database drivers are not asynchronous. Asynchornous GORM is designed to allow you to isolate these blocking operations onto a separate thread you can scale and control allowing your controller layer to remain non-blocking.
Although GORM executes persistence operations asynchronously, these operations still block as the underlying database drivers are not asynchronous. Asynchronous GORM is designed to allow you to isolate these blocking operations onto a separate thread you can scale and control allowing your controller layer to remain non-blocking.
</td>
</tr>
</table>
Expand All @@ -874,7 +874,7 @@ <h3 id="_the_asyncentity_trait">The AsyncEntity Trait</h3>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">compile <span class="string"><span class="delimiter">&quot;</span><span class="content">org.grails:grails-datastore-gorm-async</span><span class="delimiter">&quot;</span></span></code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation <span class="string"><span class="delimiter">&quot;</span><span class="content">org.grails:grails-datastore-gorm-async</span><span class="delimiter">&quot;</span></span></code></pre>
</div>
</div>
<div class="paragraph">
Expand All @@ -885,7 +885,7 @@ <h3 id="_the_asyncentity_trait">The AsyncEntity Trait</h3>
<pre class="CodeRay highlight"><code data-lang="groovy"><span class="keyword">import</span> <span class="include">grails.gorm.async.*</span>

<span class="type">class</span> <span class="class">MyEntity</span> <span class="directive">implements</span> AsyncEntity&lt;MyEntity&gt; {
...
<span class="comment">//...</span>
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -1040,8 +1040,8 @@ <h1 id="rxjava">5 RxJava Support</h1>
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">dependencies {
...
compile <span class="string"><span class="delimiter">'</span><span class="content">org.grails.plugins:rxjava</span><span class="delimiter">'</span></span>
<span class="comment">//...</span>
implementation <span class="string"><span class="delimiter">'</span><span class="content">org.grails.plugins:rxjava</span><span class="delimiter">'</span></span>
}</code></pre>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions snapshot/guide/promises.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h1 id="promises">2 Promises</h1>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails.plugins:async:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">implementation "org.grails.plugins:async:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="sect2">
Expand Down Expand Up @@ -189,15 +189,15 @@ <h3 id="_promise_basics">Promise Basics</h3>
<div class="sect2">
<h3 id="_the_promisefactory_interface">The PromiseFactory Interface</h3>
<div class="paragraph">
<p>By default the <code>Promises</code> static methods use an instance of <code>PromiseFactory</code>. This <code>PromiseFactory</code> interface has various implementations. The default implementation is <a href="../api/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html">CachedThreadPoolPromiseFactory</a> which uses a thread pool that will create threads as needed (the same as <code>java.util.concurrent.Executors.newCachedThreadPool()</code>)</p>
<p>By default, the <code>Promises</code> static methods use an instance of <code>PromiseFactory</code>. This <code>PromiseFactory</code> interface has various implementations. The default implementation is <a href="../api/org/grails/async/factory/future/CachedThreadPoolPromiseFactory.html">CachedThreadPoolPromiseFactory</a> which uses a thread pool that will create threads as needed (the same as <code>java.util.concurrent.Executors.newCachedThreadPool()</code>)</p>
</div>
<div class="paragraph">
<p>However, the design of the Grails promises framework is such that you can swap out the underlying implementation for your own or one of the pre-supported implementations. For example to use RxJava 1.x simply add the RxJava dependency to <code>build.gradle</code>:</p>
</div>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">runtime "org.grails:grails-async-rxjava:5.0.3-SNAPSHOT"</code></pre>
<pre class="CodeRay highlight"><code data-lang="groovy">runtimeOnly "org.grails:grails-async-rxjava:5.0.3-SNAPSHOT"</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down
4 changes: 2 additions & 2 deletions snapshot/guide/rxjava.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ <h1 id="rxjava">5 RxJava Support</h1>
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight"><code data-lang="groovy">dependencies {
...
compile <span class="string"><span class="delimiter">'</span><span class="content">org.grails.plugins:rxjava</span><span class="delimiter">'</span></span>
<span class="comment">//...</span>
implementation <span class="string"><span class="delimiter">'</span><span class="content">org.grails.plugins:rxjava</span><span class="delimiter">'</span></span>
}</code></pre>
</div>
</div>
Expand Down

0 comments on commit ef8c8b4

Please sign in to comment.