swoole_http_server下的ontask方法里面,调用Swoole\Coroutine\Redis出现,PHP Fatal error: Swoole\Coroutine\Redis::connect(): must be called in the coroutine,请问是咋回事呀?是只能在onRequest下面调用嘛?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3158/viewspace-3118627/ ,如需转载,请注明出处,否则将追究法律责任。