Skip to content

Commit

Permalink
Deploying to gh-pages from @ 984e052 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 19, 2024
1 parent f5ea6bb commit 560661d
Show file tree
Hide file tree
Showing 164 changed files with 782 additions and 3,013 deletions.
8 changes: 2 additions & 6 deletions .build
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ Mix.Tasks.Gh.Docs.html
Nostrum.Api.Ratelimiter.html
Nostrum.Api.html
Nostrum.Cache.CacheSupervisor.html
Nostrum.Cache.ChannelCache.ETS.html
Nostrum.Cache.ChannelCache.Mnesia.html
Nostrum.Cache.ChannelCache.NoOp.html
Nostrum.Cache.ChannelCache.html
Nostrum.Cache.ChannelGuildMapping.ETS.html
Nostrum.Cache.ChannelGuildMapping.Mnesia.html
Nostrum.Cache.ChannelGuildMapping.NoOp.html
Expand Down Expand Up @@ -173,8 +169,8 @@ dist/lato-latin-ext-300-normal-VPGGJKJL.woff2
dist/lato-latin-ext-400-normal-N27NCBWW.woff2
dist/lato-latin-ext-700-normal-Q2L5DVMW.woff2
dist/remixicon-NKANDIL5.woff2
dist/search_data-40BAA532.js
dist/sidebar_items-7079D557.js
dist/search_data-735F4D48.js
dist/sidebar_items-7AD0E00D.js
event_handling.html
gateway_intents.html
hot_code_upgrade.html
Expand Down
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
<script src="dist/handlebars.templates-IHH6HKET.js"></script>
<script src="dist/sidebar_items-7079D557.js"></script>
<script src="dist/sidebar_items-7AD0E00D.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/html-GXQ6W6IF.js"></script>

Expand Down
2 changes: 1 addition & 1 deletion Mix.Tasks.Gh.Docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
<script src="dist/handlebars.templates-IHH6HKET.js"></script>
<script src="dist/sidebar_items-7079D557.js"></script>
<script src="dist/sidebar_items-7AD0E00D.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/html-GXQ6W6IF.js"></script>

Expand Down
6 changes: 3 additions & 3 deletions Nostrum.Api.Ratelimiter.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
<script src="dist/handlebars.templates-IHH6HKET.js"></script>
<script src="dist/sidebar_items-7079D557.js"></script>
<script src="dist/sidebar_items-7AD0E00D.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/html-GXQ6W6IF.js"></script>

Expand Down Expand Up @@ -164,9 +164,9 @@ <h1>
<p>The ratelimiter is fully asynchronous internally. In theory, it also supports
queueing requests in an asynchronous manner. However, support for this is
currently not implemented in <a href="Nostrum.Api.html"><code class="inline">Nostrum.Api</code></a>.</p><p>If you want to make one or multiple asynchronous requests manually, you can
use the following pattern:</p><pre><code class="makeup elixir" translate="no"><span class="n">req</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">:gen_statem</span><span class="o">.</span><span class="n">send_request</span><span class="p" data-group-id="0638679399-1">(</span><span class="nc">Nostrum.Api.Ratelimiter</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0638679399-2">{</span><span class="ss">:queue</span><span class="p">,</span><span class="w"> </span><span class="n">request</span><span class="p" data-group-id="0638679399-2">}</span><span class="p" data-group-id="0638679399-1">)</span><span class="w">
use the following pattern:</p><pre><code class="makeup elixir" translate="no"><span class="n">req</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">:gen_statem</span><span class="o">.</span><span class="n">send_request</span><span class="p" data-group-id="6252825076-1">(</span><span class="nc">Nostrum.Api.Ratelimiter</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6252825076-2">{</span><span class="ss">:queue</span><span class="p">,</span><span class="w"> </span><span class="n">request</span><span class="p" data-group-id="6252825076-2">}</span><span class="p" data-group-id="6252825076-1">)</span><span class="w">
</span><span class="c1"># ...</span><span class="w">
</span><span class="n">response</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">:gen_statem</span><span class="o">.</span><span class="n">receive_response</span><span class="p" data-group-id="0638679399-3">(</span><span class="n">req</span><span class="p">,</span><span class="w"> </span><span class="n">timeout</span><span class="p" data-group-id="0638679399-3">)</span></code></pre><p>where <code class="inline">request</code> is a map describing the request to run - see <a href="Nostrum.Api.html"><code class="inline">Nostrum.Api</code></a>
</span><span class="n">response</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">:gen_statem</span><span class="o">.</span><span class="n">receive_response</span><span class="p" data-group-id="6252825076-3">(</span><span class="n">req</span><span class="p">,</span><span class="w"> </span><span class="n">timeout</span><span class="p" data-group-id="6252825076-3">)</span></code></pre><p>where <code class="inline">request</code> is a map describing the request to run - see <a href="Nostrum.Api.html"><code class="inline">Nostrum.Api</code></a>
for more information. You can also send multiple requests at the same time
and wait for their response: see <a href="https://www.erlang.org/doc/man/gen_statem.html#reqids_add-3"><code class="inline">:gen_statem.reqids_add/3</code></a> and
<a href="https://www.erlang.org/doc/man/gen_statem.html#wait_response-3"><code class="inline">:gen_statem.wait_response/3</code></a> for more information.</p><h2 id="module-multi-node" class="section-heading">
Expand Down
Loading

0 comments on commit 560661d

Please sign in to comment.