Skip to content

Commit

Permalink
Moved go, co and defer to hyperf/coroutine. (#5840)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Jun 16, 2023
1 parent 60d168c commit 4e33dcf
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4e33dcf

Please sign in to comment.