Skip to content

Commit

Permalink
Deploying to gh-pages from @ e6e0b12 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Aug 14, 2024
1 parent 4ed44f4 commit 442c49f
Show file tree
Hide file tree
Showing 182 changed files with 2,998 additions and 898 deletions.
9 changes: 7 additions & 2 deletions .build
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,14 @@ Nostrum.Struct.AutoModerationRule.html
Nostrum.Struct.Channel.html
Nostrum.Struct.Component.ActionRow.html
Nostrum.Struct.Component.Button.html
Nostrum.Struct.Component.ChannelSelect.html
Nostrum.Struct.Component.DefaultValue.html
Nostrum.Struct.Component.MentionableSelect.html
Nostrum.Struct.Component.Option.html
Nostrum.Struct.Component.RoleSelect.html
Nostrum.Struct.Component.SelectMenu.html
Nostrum.Struct.Component.TextInput.html
Nostrum.Struct.Component.UserSelect.html
Nostrum.Struct.Component.html
Nostrum.Struct.Embed.Author.html
Nostrum.Struct.Embed.Field.html
Expand Down Expand Up @@ -182,8 +187,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-18DEF2BE.js
dist/sidebar_items-9312FB79.js
dist/search_data-66B3A380.js
dist/sidebar_items-1B1415BF.js
event_handling.html
gateway_compression.html
gateway_intents.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-9312FB79.js"></script>
<script src="dist/sidebar_items-1B1415BF.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-9312FB79.js"></script>
<script src="dist/sidebar_items-1B1415BF.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-9312FB79.js"></script>
<script src="dist/sidebar_items-1B1415BF.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="9270202845-1">(</span><span class="nc">Nostrum.Api.Ratelimiter</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9270202845-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="9270202845-2">}</span><span class="p" data-group-id="9270202845-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="6974041574-1">(</span><span class="nc">Nostrum.Api.Ratelimiter</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6974041574-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="6974041574-2">}</span><span class="p" data-group-id="6974041574-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="9270202845-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="9270202845-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="6974041574-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="6974041574-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 442c49f

Please sign in to comment.