Zend\Expressive\Emitter\EmitterStack::emit PHP Method

emit() public method

Loops through the stack, calling emit() on each; any that return a value other than boolean false will short-circuit, skipping any remaining emitters in the stack. As such, return a boolean false value from an emitter to indicate it cannot emit the response.
public emit ( Psr\Http\Message\ResponseInterface $response ) : false | null
$response Psr\Http\Message\ResponseInterface
return false | null
    public function emit(ResponseInterface $response)
    {
        $completed = false;
        foreach ($this as $emitter) {
            if (false !== $emitter->emit($response)) {
                $completed = true;
                break;
            }
        }
        return $completed ? null : false;
    }