Re: TameJS syntax for Async/Parallel execution in PHP

From: Date: Fri, 19 Aug 2011 12:44:04 +0000
Subject: Re: TameJS syntax for Async/Parallel execution in PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-54726@lists.php.net to get a copy of this message
Am 19.08.2011 13:12, schrieb Jonathan Bond-Caron:
On Thu Aug 4 09:54 PM, Raymond Irving wrote:
Hello, I came across this little library called TameJS (http://tamejs.org/) and fell in love with the it's syntax. This had me thinking if it was possible to add such features to a PHP CLI (or web app):
Thanks for sharing, never heard of tame. Love the await{} block await { mysql_query_async($sql, $args, defer($rs)); curl_post_async($url,$data, defer($response)); } $rows = $rs->fetchAll();
http://de.php.net/manual/en/mysqli.query.php [...] With *MYSQLI_ASYNC (available with mysqlnd)*, it is possible to perform query asynchronously. mysqli_poll() is then used to get results from such queries. [...] PG should have similar functionality. Ulf

« previous php.internals (#54726) next »