Skip to main content

dispatch_to_engine

Function dispatch_to_engine 

Source
async fn dispatch_to_engine(
    order_sender: &Sender<UnifiedEngineRequest>,
    msg: OrderActionMessage,
) -> Result<Receiver<OrderUpdateMessage>, ()>
Expand description

Send an OrderActionMessage through the engine queue. Returns the response receiver. Returns Err(()) if the engine queue is closed.