mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Revise formatting and example for MongoCommandCursor::timeout()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335443 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
63b0d9a05f
commit
eecf0808f0
1 changed files with 7 additions and 7 deletions
|
@ -34,12 +34,12 @@
|
|||
<varname>30000</varname> milliseconds (30 seconds).
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
This cursor.
|
||||
</para>
|
||||
|
@ -69,14 +69,14 @@
|
|||
|
||||
$m = new MongoClient;
|
||||
$col = $m->database->collection;
|
||||
|
||||
$pipeline = [];
|
||||
|
||||
|
||||
$pipeline = [ … ];
|
||||
|
||||
$cursor = $col->aggregateCursor( $pipeline );
|
||||
$cursor->timeout( 60000 ); // for 60 seconds
|
||||
|
||||
foreach ( $cursor as $result )
|
||||
{
|
||||
foreach ( $cursor as $result ) {
|
||||
…
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue