View Source GRPC.Stream.Operators (grpc v0.10.2)

Useful and internal functions for manipulating streams.

Summary

Types

@type item() :: any()
@type reason() :: any()

Functions

Link to this function

ask(stream, target, timeout \\ 5000)

View Source
@spec ask(GRPC.Stream.t(), pid() | atom(), non_neg_integer()) ::
  GRPC.Stream.t() | {:error, any(), :timeout | :not_alive}
Link to this function

ask!(stream, target, timeout \\ 5000)

View Source
@spec ask!(GRPC.Stream.t(), pid() | atom(), non_neg_integer()) :: GRPC.Stream.t()
@spec filter(GRPC.Stream.t(), (term() -> term())) :: GRPC.Stream.t()
Link to this function

flat_map(stream, flat_mapper)

View Source
@spec flat_map(GRPC.Stream.t(), (term() -> Enumerable.GRPCStream.t())) ::
  GRPC.Stream.t()
@spec map(GRPC.Stream.t(), (term() -> term())) :: GRPC.Stream.t()
Link to this function

map_with_context(stream, mapper)

View Source
@spec map_with_context(GRPC.Stream.t(), (map(), term() -> term())) :: GRPC.Stream.t()
Link to this function

partition(stream, options \\ [])

View Source
@spec partition(
  GRPC.Stream.t(),
  keyword()
) :: GRPC.Stream.t()
Link to this function

reduce(stream, acc_fun, reducer_fun)

View Source
@spec reduce(GRPC.Stream.t(), (-> acc), (term(), acc -> acc)) :: GRPC.Stream.t()
when acc: term()
@spec reject(GRPC.Stream.t(), (term() -> term())) :: GRPC.Stream.t()
@spec uniq(GRPC.Stream.t()) :: GRPC.Stream.t()
@spec uniq_by(GRPC.Stream.t(), (term() -> term())) :: GRPC.Stream.t()