FileStream.Resource protocol (file_stream v0.3.0)

A protocol to stream a file-like resource.

Link to this section Summary

Types

t()

A streamable resource.

Functions

Returns a FileStream for the given resource.

Link to this section Types

@type t() :: term()

A streamable resource.

Link to this section Functions

Link to this function

stream!(resource, opts)

@spec stream!(
  t(),
  keyword()
) :: FileStream.t()

Returns a FileStream for the given resource.