mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
doc/langref.html.in: add builtin @handle() to docs;
Tracking Issue #1296 ;
This commit is contained in:
parent
9b890d7067
commit
ac0a87d58d
@ -5383,6 +5383,16 @@ test "main" {
|
|||||||
This function is only valid within function scope.
|
This function is only valid within function scope.
|
||||||
</p>
|
</p>
|
||||||
{#header_close#}
|
{#header_close#}
|
||||||
|
{#header_open|@handle#}
|
||||||
|
<pre><code class="zig">@handle()</code></pre>
|
||||||
|
<p>
|
||||||
|
This function returns a <code>promise->T</code> type, where <code>T</code>
|
||||||
|
is the return type of the async function in scope.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
This function is only valid within an async function scope.
|
||||||
|
</p>
|
||||||
|
{#header_close#}
|
||||||
{#header_open|@import#}
|
{#header_open|@import#}
|
||||||
<pre><code class="zig">@import(comptime path: []u8) (namespace)</code></pre>
|
<pre><code class="zig">@import(comptime path: []u8) (namespace)</code></pre>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user