Manifold.Utils (manifold v1.6.0)
Link to this section Summary
Functions
A faster version of Enum.group_by with less bells and whistles.
Gets the next delay at which we should attempt to hibernate a worker or partitioner process.
Computes the partition for a given pid using :erlang.phash2/2
Partitions a bunch of pids into a tuple, of lists of pids grouped by by the result of :erlang.pash2/2
Link to this section Types
Link to this type
groups()
Link to this type
key_fun()
Link to this section Functions
Link to this function
group_by(pids, key_fun)
A faster version of Enum.group_by with less bells and whistles.
Link to this function
hash(key)
Link to this function
next_hibernate_delay()
@spec next_hibernate_delay() :: integer()
Gets the next delay at which we should attempt to hibernate a worker or partitioner process.
Link to this function
pack_message(arg1, message)
@spec pack_message(mode :: Manifold.pack_mode(), message :: term()) :: term()
Link to this function
partition_for(pid, partitions)
Computes the partition for a given pid using :erlang.phash2/2
Link to this function
partition_pids(pids, partitions)
Partitions a bunch of pids into a tuple, of lists of pids grouped by by the result of :erlang.pash2/2
Link to this function