phasync
BufferedStream / detach

Method

BufferedStream::detach

Waits for end(), then returns the content as a file resource and marks the stream detached.

Description#

public BufferedStream::detach()

Reading a detached stream throws a RuntimeException.

Return values#

Null when the stream was already detached

Errors / Exceptions#

ExceptionWhen
TimeoutExceptionWhen end() is not called within $deadlockTimeout seconds