| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 39 | public static function go($asyncCallable, $offset = 'default') { |
||
| 40 | $vars = \get_defined_vars (); |
||
| 41 | \Swoole\Coroutine::create ( function () use ($vars, $asyncCallable, $offset) { |
||
| 42 | $db = self::pool ( $offset ); |
||
| 43 | \call_user_func_array ( $asyncCallable, $vars ); |
||
| 44 | self::freePool ( $db ); |
||
| 45 | } ); |
||
| 49 |