mpyw\Co\Internal\CoOption::getDefault PHP Method

getDefault() public static method

Get default options.
public static getDefault ( ) : array
return array $options
    public static function getDefault()
    {
        return self::$defaults;
    }

Usage Example

示例#1
0
文件: CoOptionTest.php 项目: mpyw/co
 public function testStaticDefaults()
 {
     $def = ['throw' => false, 'pipeline' => true, 'multiplex' => false, 'interval' => 0.3, 'concurrency' => 1];
     CoOption::setDefault($def);
     $options = CoOption::getDefault();
     foreach ($def as $key => $value) {
         $this->assertEquals($value, $options[$key]);
     }
 }
All Usage Examples Of mpyw\Co\Internal\CoOption::getDefault