flush(ConnPid) -> ok flush(StreamRef) -> ok ConnPid :: pid() StreamRef :: reference()
gun:flush - Flush all messages related to a connection or a stream
flush(ConnPid) -> ok flush(StreamRef) -> ok ConnPid :: pid() StreamRef :: reference()
Flush all messages related to a connection or a stream.
Either of these arguments may be provided:
The pid of the Gun connection process.
Identifier of the stream for the original request.
The atom ok
is returned.
gun:flush(ConnPid).
gun:flush(StreamRef).
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.