Grains.Support.Utils (Grains v1.7.0)
Small function that help with debugging and testing.
Link to this section Summary
Functions
This function takes
This function takes
Inject pull_with_tag
to all predecessors of short_sender
Inject pull_with_tag
to receiver
as if it was issued by short_sender
This function takes
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 toreceiver
as if it came fromsender
.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 ofsender
sender
needs to be an existing grain in the recipe and alive.
Link to this function
inject_pull_all_with_tag(supervisor, short_sender, tag)
Inject pull_with_tag
to all predecessors of short_sender
Link to this function
inject_pull_with_tag(supervisor, short_receiver, short_sender, tag)
Inject pull_with_tag
to receiver
as if it was issued by short_sender
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 toreceiver
withmsg
as content as if it came fromsender
.receiver
needs to be an existing grain in the recipe.sender
can be an existing grain or made up.