forked from facebookarchive/hack-hhvm-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
50 changed files
with
2,018 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision$ --> | ||
|
||
<book xml:id="book.hack.asio" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<?phpdoc extension-membership="bundled" ?> | ||
|
||
<title>Hack Asynchronous I/O Helpers</title> | ||
<titleabbrev>asio</titleabbrev> | ||
|
||
<preface xml:id="intro.asio"> | ||
&reftitle.intro; | ||
<para> | ||
The ASIO helpers provide convenient functions to use when writing <link linkend="hack.async">async</link> code. | ||
<warning> | ||
<para> | ||
Some of the asio helpers are currently, in our opinion, still a bit unstable. We have moved these to its own <link xlink:href="&url.hhvm.asio.utilities;">HHVM repo</link> where they can be installed as a composer package. In this documentation, helper functions will be noted and pointed to that repo. | ||
</para> | ||
</warning> | ||
</para> | ||
<para> | ||
Here is an overview of the currently built-in, supported API. Use the appropraite method whether you want a vector or map of Awaitables: | ||
<itemizedlist> | ||
<listitem> | ||
<para> | ||
v - Vector | ||
</para> | ||
</listitem> | ||
<listitem> | ||
<para> | ||
m - Map | ||
</para> | ||
</listitem> | ||
</itemizedlist> | ||
</para> | ||
</preface> | ||
|
||
&hackref.asio.reference; | ||
&hackref.asio.resultorexceptionwrapper; | ||
&hackref.asio.wrappedexception; | ||
&hackref.asio.wrappedresult; | ||
|
||
</book> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
&hackref.asio.functions.later; | ||
&hackref.asio.functions.m; | ||
&hackref.asio.functions.mc; | ||
&hackref.asio.functions.mcw; | ||
&hackref.asio.functions.mf; | ||
&hackref.asio.functions.mfk; | ||
&hackref.asio.functions.mm; | ||
&hackref.asio.functions.mmk; | ||
&hackref.asio.functions.mw; | ||
&hackref.asio.functions.usleep; | ||
&hackref.asio.functions.v; | ||
&hackref.asio.functions.va; | ||
&hackref.asio.functions.vac; | ||
&hackref.asio.functions.vacw; | ||
&hackref.asio.functions.val; | ||
&hackref.asio.functions.vaw; | ||
&hackref.asio.functions.vc; | ||
&hackref.asio.functions.vcw; | ||
&hackref.asio.functions.vf; | ||
&hackref.asio.functions.vfk; | ||
&hackref.asio.functions.vm; | ||
&hackref.asio.functions.vmk; | ||
&hackref.asio.functions.vw; | ||
&hackref.asio.functions.wrap; |
4 changes: 4 additions & 0 deletions
4
__docs/phpdoc/en/hackref/asio/entities.resultorexceptionwrapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&hackref.asio.resultorexceptionwrapper.getexception; | ||
&hackref.asio.resultorexceptionwrapper.getresult; | ||
&hackref.asio.resultorexceptionwrapper.isfailed; | ||
&hackref.asio.resultorexceptionwrapper.issucceeded; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
&hackref.asio.wrappedexception.construct; | ||
&hackref.asio.wrappedexception.getexception; | ||
&hackref.asio.wrappedexception.getresult; | ||
&hackref.asio.wrappedexception.isfailed; | ||
&hackref.asio.wrappedexception.issucceeded; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
&hackref.asio.wrappedresult.construct; | ||
&hackref.asio.wrappedresult.getexception; | ||
&hackref.asio.wrappedresult.getresult; | ||
&hackref.asio.wrappedresult.isfailed; | ||
&hackref.asio.wrappedresult.issucceeded; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 297028 $ --> | ||
<refentry xml:id="hack.asio.function.later" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>later</refname> | ||
<refpurpose>UNSTABLE - SEE DESCRIPTION</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<warning> | ||
<para> | ||
Unstable. See <link xlink:href="&url.hhvm.asio.utilities;">ASIO Helper GitHub repo</link> | ||
</para> | ||
</warning> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 330333 $ --> | ||
|
||
<refentry xml:id="hack.asio.function.m" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>m<Tk, Tv></refname> | ||
<refpurpose>Translate a map of awaitables into a single awaitable of map</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<modifier>async</modifier> | ||
<type>Awaitable<Map<Tk, Tv>></type> | ||
<methodname>m</methodname> | ||
<methodparam> | ||
<type>KeyedTraversable<Tk, Awaitable<Tv>></type> | ||
<parameter>awaitables</parameter> | ||
</methodparam> | ||
</methodsynopsis> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<para> | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>awaitables</parameter></term> | ||
<listitem> | ||
<para> | ||
The map of awaitables to translate | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
Map of awaitables | ||
</para> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 297028 $ --> | ||
<refentry xml:id="hack.asio.function.mc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>mc</refname> | ||
<refpurpose>UNSTABLE - SEE DESCRIPTION</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<warning> | ||
<para> | ||
Unstable. See <link xlink:href="&url.hhvm.asio.utilities;">ASIO Helper GitHub repo</link> | ||
</para> | ||
</warning> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 297028 $ --> | ||
<refentry xml:id="hack.asio.function.mcw" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>mcw</refname> | ||
<refpurpose>UNSTABLE - SEE DESCRIPTION</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<warning> | ||
<para> | ||
Unstable. See <link xlink:href="&url.hhvm.asio.utilities;">ASIO Helper GitHub repo</link> | ||
</para> | ||
</warning> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 297028 $ --> | ||
<refentry xml:id="hack.asio.function.mf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>mf</refname> | ||
<refpurpose>UNSTABLE - SEE DESCRIPTION</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<warning> | ||
<para> | ||
Unstable. See <link xlink:href="&url.hhvm.asio.utilities;">ASIO Helper GitHub repo</link> | ||
</para> | ||
</warning> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision: 297028 $ --> | ||
<refentry xml:id="hack.asio.function.mfk" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>mfk</refname> | ||
<refpurpose>UNSTABLE - SEE DESCRIPTION</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<warning> | ||
<para> | ||
Unstable. See <link xlink:href="&url.hhvm.asio.utilities;">ASIO Helper GitHub repo</link> | ||
</para> | ||
</warning> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
Oops, something went wrong.