Name

gun:flush - Flush all messages related to a connection or a stream

Description

Flush all messages related to a connection or a stream.

Arguments

Either of these arguments may be provided:

ConnPid

The pid of the Gun connection process.

StreamRef

Identifier of the stream for the original request.

Return value

The atom ok is returned.

Changelog

  • 1.0: Function introduced.

Examples

Flush all messages from a connection
Flush messages from a single stream

See also