Make asynchronous calls synchronous in PHP 5.5 with generators!