public static function any($value) { (yield Co::RETURN_WITH => (yield ControlUtils::anyOrRace($value, ['\\mpyw\\Co\\Internal\\ControlUtils', 'reverse'], 'Co::any() failed.'))); // @codeCoverageIgnoreStart }
public function testAnyEmpty() { try { Co::wait(Co::any(['A', 'B'])); $this->assertTrue(false); } catch (AllFailedException $e) { $this->assertEquals('Co::any() failed.', $e->getMessage()); $this->assertEquals(['A', 'B'], $e->getReasons()); } }