Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72810 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79949 invoked from network); 25 Feb 2014 16:53:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2014 16:53:31 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:48078] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/01-09491-88ACC035 for ; Tue, 25 Feb 2014 11:53:29 -0500 Received: by mail-la0-f47.google.com with SMTP id y1so2984518lam.34 for ; Tue, 25 Feb 2014 08:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=p60ckRZoTzwKZLUCXR0EF39WXuul459/4GcpRVG0Duk=; b=KDCHSGzzfMaFathUos5W5l8dkKOeHEcqQCksLe8aPJ8UQ8JmgXuoELaK/al7ADbct8 y1T8V7daiujEnzWlNI3WzsvmTtGL82eVCl980hlMFN6wLtNGk/wTd4t4sgR8/XbAbObS 4GQQLsJGZVV7IH8KTJBkhReqWgH5pXsUzdCTgdi+O6aetCF5Sbxt497mAp7DcdH4wbVM idCYcHin9w1mm78bCtjJTo/5u1VqFLYK8a3j+xFXnIOsjx0n17eoCSewR1vhQdZiazUL +2zRe0sN+Q9TWEQM+2Fk1DidBNl7rp4i65814VLP9od4XnoeZY+WLX2O7ScVIpHnsPYJ ByvA== X-Received: by 10.152.42.129 with SMTP id o1mr480924lal.19.1393347205680; Tue, 25 Feb 2014 08:53:25 -0800 (PST) Received: from [10.0.1.8] ([46.252.161.106]) by mx.google.com with ESMTPSA id mk5sm795963lac.6.2014.02.25.08.53.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 08:53:24 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_EB2BAED5-3D2A-4228-B674-400B280D9BA0"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) In-Reply-To: Date: Tue, 25 Feb 2014 20:53:12 +0400 Cc: internals Message-ID: References: To: Kevin Ingwersen X-Mailer: Apple Mail (2.1827) Subject: Re: [PHP-DEV] Async operating in PHP From: indeyets@gmail.com (Alexey Zakhlestin) --Apple-Mail=_EB2BAED5-3D2A-4228-B674-400B280D9BA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 25 =D1=84=D0=B5=D0=B2=D1=80. 2014 =D0=B3., at 20:43, Kevin Ingwersen = wrote: > Hey. >=20 > For a long time now, I have been using nodejs and its async methods. I = am even working on bridging nodejs and PHP via a native addon=E2=80=A6but = thats more complex for another thread. > But, as I used nodejs, I enjoyed of being able to just push a callback = into the event loop, so I could continue my code, while a heavier = operation is sent to the background. >=20 > Will PHP ever have this? That would certainly be very interesting to = have, the option to just push away a bigger task. http://docs.php.net/ev http://docs.php.net/event http://reactphp.org/ --=20 Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc --Apple-Mail=_EB2BAED5-3D2A-4228-B674-400B280D9BA0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCgAGBQJTDMqBAAoJEMkJcRxZdR27/EwH/3vT0ZWpYalvjMFwYarAKiDU WocRZW7SYy+XETMi0t6/B/QSvALhDwLvGBxN1TWsLL14VWVrPU8aHkg92EZYFK77 WDg63bj8Cxc+MltCIMQ1iPvZ4hHbhzK3yQnS9nAfe3LbMYyBIVVYEq41KrQQ12h8 yMqnYq6gRkn411ZpLH7ScxjXekCI7o1C/dC56wayC+LiWAXdaONBYvnp+nuKtYDb 33dPX2SXKmXbvu6nvAhLtpshFzrzE6jnKujJCph8kaSzKkMldq5nJwEgJ2GyZs9B Ks4lGOk9eajUx9NLRc90PvxWzgpjY8xirKmq1CBVAP1LidqjbVSL2KlXCPY/dls= =+Ta0 -----END PGP SIGNATURE----- --Apple-Mail=_EB2BAED5-3D2A-4228-B674-400B280D9BA0--