public static function createChild(\Closure $callback)
    {
        $puid = Context::getcoroutine();
        return \Swoole\Coroutine::create(function () use ($puid,$callback){
            Context::markParent($puid);
            \Swoole\Coroutine::call_user_func($callback);
        });
    }
public static function createChild(\Closure $callback)
    {
        $puid = Context::getcoroutine();
        return \Swoole\Coroutine::create(function () use ($puid,$callback){
            Context::markParent($puid);
            \Swoole\Coroutine::call_user_func($callback);
        });
    }
public static function createChild ( \ Closure $ callback ) { $ puid = Context :: getcoroutine ( ) ; return \ Swoole \ Coroutine :: create ( function ( ) use ( $ puid , $ callback ) { Context :: markParent ( $ puid ) ; \ Swoole \ Coroutine :: call_user_func ( $ callback ) ; } ) ; }
Create child coroutine in case to use parent`s context
@param \Closure $callback
@return mixed
Create child coroutine in case to use parent s context