Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129041 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 C078C1A00C1 for ; Sat, 1 Nov 2025 13:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762003044; bh=Fab3hQHN2qR42ivF14IMWejTSTsp1TUFY8Bbkhp+sxI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=EBLLrse8BrCaV5T9XqyDt1X5Bxjn6bXB2xjC6et90xk5X5k3kDmsZCtp14pMWQPIU jrlTT5XeFtmHCMNbGixM4Q+iV7uAW/yXGSmcxAxKVjwsA3uICKYfi/xKMz8sba68Y3 uMQ/Kc+3ksuY0mDYjZTpheyWevb1omv25sOoTpkolMOgyrm3mx7Y8pftA51laEGqt/ g9X7Ypc3mw5UnM3VcUuYOevOpdUmHTtD6kLBeueCqv+9CFWbIHncpIuH4EVSrcwe6U c8qaGXpahJ6Cpd8n0bLlljtk7MHVVwJtpShPh3okUVISXZGlcZC8DqR8nUsQRHU9C1 2waUotstci9sA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C24E01801D5 for ; Sat, 1 Nov 2025 13:17:22 +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.2 required=5.0 tests=BAYES_20,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 mail.yourprovider.de (mail.yourprovider.de [157.90.159.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 1 Nov 2025 13:17:10 +0000 (UTC) Received: from [192.168.178.35] (xdsl-78-35-246-69.nc.de [78.35.246.69]) (Authenticated sender: dennis@birkholz.biz) by mail.yourprovider.de (Postfix) with ESMTPSA id 04F489C4AE for ; Sat, 1 Nov 2025 14:17:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dennis.birkholz.biz; s=default; t=1762003025; bh=Fab3hQHN2qR42ivF14IMWejTSTsp1TUFY8Bbkhp+sxI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=G8haLAkzITH5UwDE/JKalnF3FPGHG1PhFejVfmX449oZqZNFDg97NXVoOGGxXpXEU bQIqVaPWycmHoRdmjwihmlxBEPY98bBaR0X5mfu+B2j9BZP0Utgut8Nkd8wqRXQZ5r pm/Psq/PDAZpC7f/seiy06L+UzmE1PekWsRSFuQBWc9LQ/yk/zpRf9gVSYaxro3X+V y6gqKBbHd5ihrXGEnwQleXzXYxVDIr0OMchw3XtdmFLPvAbmSqxhPZM1/TVFOLf8Or UMeiZ8s0AxA5KUD+qFJ3v1Mf7cws2YPh/Cv7aV2+11PkzHzl6DQc93ZYdWJNi+DBhD AgzZ4cijDm/nA== Message-ID: Date: Sat, 1 Nov 2025 14:17:04 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] PHP True Async RFC Stage 5 To: internals@lists.php.net References: <2441aa9c-41c8-4ce1-b9c0-67136e5f97da@dennis.birkholz.biz> Content-Language: de-DE In-Reply-To: <2441aa9c-41c8-4ce1-b9c0-67136e5f97da@dennis.birkholz.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: php@dennis.birkholz.biz (Dennis Birkholz) Hi Edmond, could you please clarify these two questions? Thanks. Am 31.10.25 um 11:59 PM schrieb Dennis Birkholz: > Also I do not really understand why the "cancellation" is an > awaitable. If the provided awaitable is itself some infinitely > blocking Coroutine (e.g. `while (true) {}`), how can the scheduler run > the actual Coroutine and the "cancellation" awaitable to determine > whether the Coroutine should be cancelled or not? As long as there is > no multithreading, this does not make sense for me. > > In addition, what happens if a Coroutine is suspended and is restarted > again. Is the cancellation awaitable restarted? Or just continued? Kind regards Dennis