OrderDistributor.distribute_new
You're seeing just the function
distribute_new
, go back to OrderDistributor module for more information.
Link to this function
distribute_new(order)
Distributes a given order to all elevators in the node cluster. Spawning a multi_call effectively becomes a multi_cast with an acknowledgement and a given timeout.
Parameters
- order: Order to be distributed as new :: %Order{}
- best_elevator: Elevator to serve the order :: atom()
Return
- :ok :: atom()