Slim Twig Flush

I need to send some flush while the page is being processed using slim with twig.

I need to render a page and still flush it

You could try the flush tag to tell Twig to flush the output buffer:

A custom middleware could convert the flushed output buffer to a PSR-7 stream.