From 4e33dcf025ad9d7f69381dc1b26ac0fc8958a334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Fri, 16 Jun 2023 17:09:43 +0800 Subject: [PATCH] Moved `go`, `co` and `defer` to `hyperf/coroutine`. (#5840) --- src/Functions.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index 14d14fe..cdd7f6e 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -160,33 +160,6 @@ function call($callback, array $args = []) } } -if (! function_exists('go')) { - /** - * @return bool|int - */ - function go(callable $callable) - { - return \Hyperf\Coroutine\go($callable); - } -} - -if (! function_exists('co')) { - /** - * @return bool|int - */ - function co(callable $callable) - { - return \Hyperf\Coroutine\co($callable); - } -} - -if (! function_exists('defer')) { - function defer(callable $callable): void - { - \Hyperf\Coroutine\defer($callable); - } -} - if (! function_exists('class_basename')) { /** * Get the class "basename" of the given object / class.