swoft
swoft copied to clipboard
🚀 PHP Microservice Full Coroutine Framework
| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | 2.0.11 | Swoole version | 4.8.8 | PHP...
`{"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:51","event":"workerStart","tid":1,"cid":1,"traceid":"","spanid":"","parentid":"","cost(ms)":0.62,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:51","event":"workerStart","tid":1,"cid":1,"traceid":"","spanid":"","parentid":"","cost(ms)":0.34,"mem(MB)":34,"uri":"2","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:52","event":"timerTick","tid":2,"cid":2,"traceid":"","spanid":"","parentid":"","cost(ms)":0.45,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:53","event":"timerTick","tid":3,"cid":3,"traceid":"","spanid":"","parentid":"","cost(ms)":0.22,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:54","event":"timerTick","tid":4,"cid":4,"traceid":"","spanid":"","parentid":"","cost(ms)":0.21,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:55","event":"timerTick","tid":5,"cid":5,"traceid":"","spanid":"","parentid":"","cost(ms)":0.2,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:56","event":"timerTick","tid":6,"cid":6,"traceid":"","spanid":"","parentid":"","cost(ms)":0.23,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:57","event":"timerTick","tid":7,"cid":7,"traceid":"","spanid":"","parentid":"","cost(ms)":0.2,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:58","event":"timerTick","tid":8,"cid":8,"traceid":"","spanid":"","parentid":"","cost(ms)":0.22,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""} {"level":250,"level_name":"notice","channel":"swoft","datetime":"2019-11-26 11:59:59","event":"timerTick","tid":9,"cid":9,"traceid":"","spanid":"","parentid":"","cost(ms)":0.2,"mem(MB)":34,"uri":"1","pushLog":"","profile":"","counting":""}`
我想用swoft 做一个长连接的小游戏,请问官方有没有类似于基于单例类的组件,因为产生对战数据,获取不到单局游戏内的数据,而且我不想用Table
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. Changelog Sourced from phpunit/phpunit's changelog. [9.5.21] - 2022-06-19 Fixed #4950: False error on atMost() invocation rule without call #4962: Ukraine...
| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | 2.0.11 | Swoole version | 4.8.6 | PHP...
| Q | A | ------------------- | ----- | Bug report? | yes/no | Feature request? | yes/no | Swoft version | 2.0.9 (by `php bin/swoft -V`) | Swoole version...
| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | 2.0.11 | Swoole version | 4.8.9 | PHP...
官网无法访问?
| Q | A | ------------------- | ----- | Bug report? | yes/no | Feature request? | yes/no | Swoft version | x.y.z (by `php bin/swoft -V`) | Swoole version...
| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | 2.0.11 | Swoole version | 4.8.6 | PHP...
``` $wg = new WaitGroup(); foreach ($dataArr as $v){ $wg->add(); sgo(function () use ($wg) { $wg->done(); }); } ``` 想实现new WaitGroup(10);控制并发数10 达到的情况下add()会自动阻塞等待