« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for Producer (0.001 sec.)
The MongoDB\Driver\Cursor class | PHP 8.3 11228
The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsulates the results of a MongoDB command or query and may be returned by MongoDB\Driver\Manager::executeCommand() or MongoDB\Driver\Manager::exe ... new results or stop iteration entirely. In order to demonstrate a tailable cursor in action, two scripts will be used: a "producer" and a "consumer". The producer script will create a new capped collection using the » create command and proceed to inser ... ew MongoDB\BSON\UTCDateTime ]); $manager -> executeBulkWrite ( 'test.asteroids' , $bulkWrite ); sleep ( 1 ); } ?> With the producer script still running, a second consumer script may be executed to read the inserted documents using a tailable cursor, ind ...
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
新機能 | PHP 8.3 7485
新機能 PHP コア 型付きプロパティ クラスのプロパティは、新たに型宣言をサポートするようになりました <?php class User { public int $id ; public string $name ; } ?> 上の例は、 $user->id には int の 値だけを、そして $user->name には string の値だ ... の型を狭めたり、引数の型を広げたりする 次のようなコードが動作するようになります: <?php class A {} class B extends A {} class Producer { public function method (): A {} } class ChildProducer extends Producer { public function method (): B {} } ?> 完全な型の ...
https://man.mtool.work/php/8.3/migration74.new-features.html
PREV 1 NEXT