Grains v0.3.7 Grains.Support.Utils

Small function that help with debugging and testing.

Link to this section Summary

Link to this section Functions

Link to this function

inject_pull(supervisor, short_receiver, short_sender)

This function takes:

  • the grain supervisor pid
  • short name receiver
  • short name sender It send sends a pull to receiver as if it came from sender. receiver needs to be an existing grain in the recipe. sender can be an existing grain or made up.
Link to this function

inject_pull_all(supervisor, short_sender)

This function takes:

  • the grain supervisor pid
  • short name sender It send sends a pull to predecessors of sender sender needs to be an existing grain in the recipe and alive.
Link to this function

inject_push(supervisor, short_receiver, short_sender, msg)

This function takes:

  • the grain supervisor pid
  • short name receiver
  • short name sender
  • a message msg It send sends a push to receiver with msg as content as if it came from sender. receiver needs to be an existing grain in the recipe. sender can be an existing grain or made up.