Does \tempnam blocks event loop? (streaming example)
Guuzen opened this issue · comments
Guuzen commented
PHP docs states that "tempnam — Create file with unique file name" so looks like it is io operation.
Niklas Keller commented
Yes, it's an IO operation, but usually very short. Depending on your application, this short blocking might be acceptable, but it obviously depends on the frequency with which you create such files.