Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121797 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44402 invoked from network); 24 Nov 2023 08:57:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Nov 2023 08:57:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B5DD8180040 for ; Fri, 24 Nov 2023 00:57:04 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 ; Fri, 24 Nov 2023 00:57:04 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4083f61322fso13354605e9.1 for ; Fri, 24 Nov 2023 00:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700816218; x=1701421018; darn=lists.php.net; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=83KH4ZvnXnlVWwRBgabUfH4JzOo81l2Vn6dS19hcxjs=; b=OojpqBnL3/IeRKi+QlpAHBqChbkdBOJ/kEII2BxPg30VN3K7DIQPU14w/XMidiiF8o vEXkHJthWRZCpvMeKf+g/3t+Rvxsq11OoZi6k9MSaTmMrZTT68Sg5DxCGHHaEfisj8LF H0Wliy0QKxle0BoaHI9/9cHxk9mlSTMAQ275b6jzM6PPaxAIe0HiiOYKvJOhBrze4opW iz4STkGb5EDyrdu6bNUIFiVR/7TTVZdMAiPliBonpSutO9b9w+8tWVLzuBFxLZzHL8ND 2yKYTvF6x4q9pqWc6vLpL7rdQ9Gv0rODZVFjB/9swxzN9XlqhLzssFN2uSJ9J3AaU62w sdzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700816218; x=1701421018; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=83KH4ZvnXnlVWwRBgabUfH4JzOo81l2Vn6dS19hcxjs=; b=tDjQofiKr7qvupV1qN38/5x5k2hK3jidP4HDNyuIUtuU8wYwleJxIuqv2CI0b/aSgK Y0s7KkAD11ctcKL+RPBA3aAMcJgX9ka3xqjsJIuXVpBkx98TZxOxfIxbxLHHQoqqkZmJ HHgbzYFRMSRi7A6l06F8twKp73ZtUwxi8XGlUOncQwXUIYlyiMR+azG4ILpRLo+KRYqw u0wFRfcSQ7rh43WwSpKwxRxnRlBNBN+0PokZxznZJiY8Q6R4xP+ocsFCgFGEA1Tabhmj 7Q76oj8vZzjCtNuUlrap4QG397V/HtzEpXaNgtDZaDrBnEOiLRtse/ESFuDlLkchtgCl O82A== X-Gm-Message-State: AOJu0Ywvfbd2hY097GIw47pLLg7i3RZV+NXCt5a9akwu7l1aBYXzk3kc zLVXM88FHMe/6NxZsXUbbwZFfDzidREeEg== X-Google-Smtp-Source: AGHT+IEm3qFydTwqhuSFB5mrzAnEIp90ogxVNdK6YNp9EzQDiC1x20thwal5irdlBk0ZKaHpznS6+Q== X-Received: by 2002:a5d:484c:0:b0:332:c9be:da02 with SMTP id n12-20020a5d484c000000b00332c9beda02mr1416883wrs.12.1700816217644; Fri, 24 Nov 2023 00:56:57 -0800 (PST) Received: from [127.0.0.1] (as198747.daniil.it. [128.116.205.77]) by smtp.gmail.com with ESMTPSA id r13-20020adfe68d000000b00332cbda1970sm3730418wrm.30.2023.11.24.00.56.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Nov 2023 00:56:57 -0800 (PST) Date: Fri, 24 Nov 2023 09:56:57 +0100 (GMT+01:00) To: internals@lists.php.net Message-ID: In-Reply-To: References: <18fdd0e0-de80-403a-b6f4-0e90b1de1191@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8_258828974.1700816217296" X-Correlation-ID: Subject: =?UTF-8?Q?Re:_=E5=9B=9E=E5=A4=8D:_[PHP-DEV]_Is_it_possible_to_?= =?UTF-8?Q?add_asynchronous_loop_call_function_=3F?= From: daniil.gentili@gmail.com (Daniil Gentili) ------=_Part_8_258828974.1700816217296 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, > it is not golang's defer, they is similar javascript async call function of working mode. For that, you can easily async libraries like amphp/revolt (https://amphp.org), which use fibers (as PHP fibers were created mainly for amphp/revolt, by the developer of amphp/revolt). You probably want to use the EventLoop::delay function (https://revolt.run/timers), or the async function (https://amphp.org/amp#coroutines). Regards, Daniil Gentili. ------=_Part_8_258828974.1700816217296--