Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128900 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 569EB1A00BC for ; Wed, 22 Oct 2025 11:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761131801; bh=zLqcY6vBFw5LPy315oVkvRebYL12LFZKU/jQMwK954E=; h=Date:Subject:To:References:From:In-Reply-To:From; b=V3+1wAB93Xmms7x6epc52iKUjLD0OtxfIubvKZ6KvJ976Pvr+buhFRp25ua/Ld8Wc RruGMEGWfZPpykuw0SdFnledLmehVGQUgohJQnzzTpHA5wvML4syuuHim1DBQc06xr BToiup/hImQB+I40fJUw0Czqj0oAGLwlrHsRk49HtvmCPl3j+gFP9LSgffavik02lJ Xldu4C6x/9S8UKD3xTODNC98dWJ+neJMPQihPP7YkhZE6x2SWlzcp2LC+f7oG8hgda h/rTVUX5GJ4mS/F4zQahKHJpz0skFmHZyqXoQzizx8jEplLlDDRS4EyqjL7NZ+nV04 avGhko5RUb7vg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6B6D618020B for ; Wed, 22 Oct 2025 11:16:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 22 Oct 2025 11:16:37 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 97C7F30061C7 for ; Wed, 22 Oct 2025 13:16:30 +0200 (CEST) Authentication-Results: ext-mx-out013.mykolab.com (amavis); dkim=pass reason="pass (just generated, assumed good)" header.d=alec.pl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alec.pl; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim2; t=1761131790; x=1762946191; bh=2NH2JvHqzfD147dZq+sv0Wp gvw81b4LUNvfjL0ocIN8=; b=hpQeLtLo89RtCpYqN0etTOwSZKefLTtT5pY7Mcv O5WyMQ9PM96Ll1L0lcBQFCz6v81HjbdL52/xMRBTMfXu7kZfnDA+ZofY4E3sfOcA 8X8u3ZmZ2gyLSyxXMxw7wAI7kgOUm5iFTa7WpTkTvej1HOCf11SCT7d6+xqNqwSK /FhRl/66CfX4vKTwPGgEYNsmMr7hS+a6ms8twBZHpmV5b8B7Fcb+0VlmwT+nvfr+ EfFRbBOiS6c1H5vSnq2JFxgVR3Jxfa14s/7mx4JeDQZSJwNQaeACkOMXFxs6RKSM ZcFBg1rp5qwCb/Jozrhyp5LI0leVWcKd0/J3s+bwG+eWXaw== X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id MFAsWBF97rHV for ; Wed, 22 Oct 2025 13:16:30 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id ED4DA3003DA7 for ; Wed, 22 Oct 2025 13:16:29 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id A265132085ED for ; Wed, 22 Oct 2025 13:16:29 +0200 (CEST) Message-ID: <25be6748-d8c3-4f1a-bf81-297cea72f8db@alec.pl> Date: Wed, 22 Oct 2025 13:16:29 +0200 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 To: internals@lists.php.net References: Content-Language: en-US Autocrypt: addr=alec@alec.pl; keydata= xsBNBEy9TtkBCAC4ef0IJaqTDQNQZ5CPrHvNs5kcACvtffwydrTcRJ28dHwjZD8daSxfVYEo acyARevTOvsp36Vgq8Yt7ATu6y7MPBaPj9Lq0kwX7HM8QDn8jTfufAgMjxcw5bD+JNR5+8G9 hUF3F35gVuAd471hS+QB/Ug/PezcNx9H5yFUMuvrO3ybyIDhw5qJI2RoJMjMr5DPKUG7z810 1e/NW7y9FfHq+Ony7A70w+vcfv1L+LLX5gfrpKI3m0zKm7cj1vyxZfC9RijIzWZN3GgExexI KJdbkcg9F/zigKo72TJhgvjy6YZP03HmWZVcpsd3aIT3Tweg0cCivaKVBNcFR1oda6XvABEB AAHNFkEuTC5FLkMgPGFsZWNAYWxlYy5wbD7CwHsEEwECACUCGyMGCwkIBwMCBhUIAgkKCwQW AgMBAh4BAheABQJMvVAwAhkBAAoJEL7mdKAZNZ3BEhkH/1eAuCOSXsWg8YwZzmABoKKZfNpJ Z3QTwAMxXyCPjJMwLMLHsrVO+VbGupFcIW/q/3bvt1r8LwPB73rg0TFiHoYzeQzdnOVYFW7w OYz9BDVjLE4goDk6xN5Nj1CpBMXzQFdr3HVKyuRK1CLd9p13CofiBlLsQ4JqtosnlvSCEjTL yIajACU3kY2je1e58N5VHzZ+VMeg2xbuQJ3q1iTkYggZ+xRC1muw4Xgt2vxgfWjn7u3dmjYM T3H2WFprLZwliejHgzhWdYABdyCU5VuGCLOV+xk2UCADya0hvVVIezA/4YG3w01yjsljRrKy HFJUqw+MqagA6dsfflZSvmROKMbOwE0ETL1O2QEIANHbid+rMQ/IX0/UyVtnLWunDEg6Yl2B twHTecZ4Ym3tBxc1sbPDoYpY0DZ86gYi9DCbolrdjnrRK9ldYItVJ8rJUkEIDz/2yhjcr3s3 p2SyI94bocoG0WW+VRlssJMxTB2ihblihkY5HqT+9PgOFxnpSqz1ksTaI3JOVcokidhoB7MJ muyb28rNtZCJP7upRUwBSoZfHiL83w3Ad1Fn49QVO7kshH11lNyJ9jB17BTl1I0sj7RPqAor JcMxsSOJXW71ZcipXWym+GacY/qziQw7bT9CQYSmr4SiRV7GahD91enDkdv+pUAnb8NEifQ1 LT26XcL6Ng9EbG5AT4qI46kAEQEAAcLAXwQYAQIACQUCTL1O2QIbDAAKCRC+5nSgGTWdwe2T CACaux3lHitD8IIO5fy6RxPqym6vMlKiN0IyilahtJ0A2htNqwbFb6TukpzKw04DGSPEOGPa o4hdsLtQtqAPwqrR+FGJDc6V/jD0rPjThC3NcvkJuoi622ZLCsi8TAL5kBmF2NYd7ejszB31 5EzvpXSeES8+9pv6yshzUborEg9QKhPxW0yvrdj2OwFUlRr6/jLpKmMLzSx5F0yEg10urvfe 9Sttk5TVzHycOa1nKSzj79F1jXTl/mji/i082s1nlwb8d6LNVrm0e1tGMxSk/WpghFVVSm4O MvUvMkEEDkwGsm+mPcmX4UPcvq/wU3hGhDeVlpkfVTJQGvDbEUzTXbz6 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: alec@alec.pl (Aleksander Machniak) On 5.10.2025 07:23, Edmond Dantes wrote: > https://wiki.php.net/rfc/true_async The RFC is not easy to process. Here's some ideas. - The glossary in "Overview" is good, but probably incomplete. The examples there, with no description, do not help much and could be removed, imo. - "Collable by design" and "Coroutine lifetime" sections should become subsections of "Coroutine" or placed after it. - the "Scheduler and Reactor" section does not explain much over what's in the glossary. - the "Critical section" section should not be a main section, "Cancellation policy" probably either. - the "Basic usage" section in the "Suspension" section is useless. - don't use "suspend keyword" and "await keyword", they are functions. One question. Seems like we don't really need delay() function. Why not add an argument to the suspend() function? I think it would make the code easier to understand, considering seeing suspend(1000) versus delay(1000). -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com