MethodError: no method matching (::Base.RedirectStdStream)(::IOBuffer)

couldn’t find anything about this using googling

Does anyone know, why redirect_stdout cannot be used with IOBuffer? Is there a simple workarond?