Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128932 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 1E33E1A00BC for ; Thu, 23 Oct 2025 15:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761232726; bh=/FO7Slg18wnxt38YOXH9+bQfwEYacZNuY8+svrJRMYE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ekI8yK98hZKahflbsCGS23oyVA1iCwx0HzeznVuqlsNg+bjc3YPyPHcwyqVCSjDx0 ZavhTlbBEDPmBiXMVNQkRD4JGmMFnqGaWFfZQ/fRN+0r+GANXs+/Lxr0LufhUb8/0F iIzDaOESYuY9RsHNHqbgMSjo87RnqnX8qora6NCLXSc3oQjvFjEqTLo97be6kBUXVK 5vaHyIjuDYDqG1ACpEOWFNaLJuJiGdUFxVQnprQPgEgsxGDvJjC4kMkSmLxKcLXb1h KdlBNgnGK2HJyMbYTeGs5YSUuaekWpTetPgxChxPw6BTHKT9a2bogpcU6bYCjIKZ4y WWRtN0mXn76Zg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 209F3180083 for ; Thu, 23 Oct 2025 15:18:46 +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_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (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 ; Thu, 23 Oct 2025 15:18:45 +0000 (UTC) Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-54aa30f4093so323099e0c.3 for ; Thu, 23 Oct 2025 08:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761232720; x=1761837520; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/FO7Slg18wnxt38YOXH9+bQfwEYacZNuY8+svrJRMYE=; b=YZOlM4/T5OiWZiIRD4wT3v/1OI09GQ7ohkTGjm7j1vtJKq6TC6CxFgJcbRfqkq241g LMD2JGldFEOhbMGcMfuNiwcyFX5U7F3ks7JJeKuNShzjUKGHaNm82AZ2oUsE2nns2Qwo BJY3mUykJyV/JXtDyQZ1F1jCoTFxQ/wjy/eYWWuGuoXXcfEtaeEqcX6T8RWfplw903Ad hP8UhijvK+xL6DlzjH3UGsqISibj4XWRThg6XR5HXDwpX/OH8UJeKnpfZMt+h9MrGHBp SHhmPK2joXGYB4gBjN9Mn2CF+uk9QKOwXtYaNI/GNDh0AAIKeJswNth2RUWJNX+vih3E Mntg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761232720; x=1761837520; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/FO7Slg18wnxt38YOXH9+bQfwEYacZNuY8+svrJRMYE=; b=tZcqNEJZ9vIhWH1GgoFrqiqnG0IhG8dYc1AhvdrUEkNrXXWIEOXPL18tonU3eV35Eu TQsg32WiDH5GLI42MQr4NnlSUJR8vK44nkGqiMWQoAvcpA9MZg0g2lu7XAaJDh/3kocz AvsnN5q6Tv0TgCNrBnVtDOxDngxsLcKgwgaKtCHoAfRTnqlDpRmZY7QwGDsuM8XqVjrx q2AI0fhDzkZmT3vIs620/apz+iBr0Hp374PeIgV9a1oXGZkkZrs56aD6MqPM0Af1+QSI j/8XDbKI6ZZUSfsnq2TyRblcEtAlcMqkh6fICWza0Ts8A0Ayb+K0yGtyHqAZ+KhbmGyk HmUA== X-Forwarded-Encrypted: i=1; AJvYcCVq/mT16IRM5Pz4pbpEQJ3/8ySW688a4FvhS9w3C3mFQJ+3WXhixgC/wT2PqivHdvr9nRd6HpG7lE8=@lists.php.net X-Gm-Message-State: AOJu0Yz5qvV6itQV7WnqnvDPrZ/bCrx56PgMdnChI39Sic7DymWq7Vx8 4oDPvtlewSzqgt5laq90Vhgnb1Jw2zRDWL/xlq8m9gabFElqjCpEVi4WxY8/mrqePjV5TEtDMc1 2mTnz6P9IeFcu5fKjfPjLz1BDWIhGHmZZ0YWFVjY= X-Gm-Gg: ASbGncvqWT7IIhosue5yegFK63DUoseYyOejSxeMFRzIlhIZRYI3IhahlWi4MLh3waa B7jiUBt1RMzoihNmDMutAwjRT9VnKoQKFoTlfemIO991ZKwNTkz9L4PzUNul1LIoqcHpdxXdBpx 93pcSBUVuspcvcQ2cK7WHLkSj3Ep56j8z+D0Ps0TH4+EAM/UPg0acyjR58qRoUT9spa7HTwdQsQ Le+ibYin/xhE0BNdWb9qcdBdAtETnsAfskflpktiX+jISRLReD5ZEGvIwDMLmWNpT+QsVlNzQMn 8nHO9EK8EJUcC8A= X-Google-Smtp-Source: AGHT+IFtjqgU2D9YbDDJeD37omL99mBIeYqj9oq4PLQcze8br6eXMGspHo7y9pxFgNUK4i69xOFvP9W8Rc5gLNGgP/A= X-Received: by 2002:a05:6122:d1d:b0:557:c0c8:5092 with SMTP id 71dfb90a1353d-557c0c85229mr926317e0c.15.1761232720010; Thu, 23 Oct 2025 08:18:40 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <0e4e39d6-9cc9-4970-92e0-2463143b4011@app.fastmail.com> <37180d8d-85b4-49a3-a672-334bf4329470@app.fastmail.com> <2f8524a7-dea2-4fbf-933a-c538d3706253@app.fastmail.com> <151800a7-1094-49bc-8e43-c593a74741af@app.fastmail.com> <16c8de59-3890-469c-b9f5-c43f94dc7a33@app.fastmail.com> In-Reply-To: <16c8de59-3890-469c-b9f5-c43f94dc7a33@app.fastmail.com> Date: Thu, 23 Oct 2025 18:18:28 +0300 X-Gm-Features: AWmQ_bniA2oOCLJ-OxoMh5v1FSyvyZvdg4-J-IwIAruNVrV8kxBd5gDRhKtfEVQ Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 To: Rob Landers Cc: Aaron Piotrowski , PHP Internals Content-Type: text/plain; charset="UTF-8" From: edmond.ht@gmail.com (Edmond Dantes) > Why not keep the name Awaitable instead of creating a FutureLike, but just harden the interface? We can always loosen the interface in the future, or create a new interface for "streaming" > awaitables (aka, multi-shot Awaitable). Then await() could change its signature from Async\await(Awaitable $awaitable): mixed to Async\await(Awaitable|StreamingAwaitable $awaitable) at some > point in the future -- and it would be BC. The Awaitable interface is not typically associated with Future/Promise. While the term Future is known to almost everyone. The degree of recognition for Future is much higher. The term StreamingAwaitable reflects a different meaning. The fact that FutureLike extends the Awaitable interface reflects the idea that Futures can be used in select-like operations just as Awaitable objects can. If someone prefers a different name instead of Awaitable, I have nothing against it, but please provide a rationale.