Function hotshot_task_impls::response::run_response_task

source ยท
pub fn run_response_task<TYPES: NodeType>(
    task_state: NetworkResponseState<TYPES>,
    event_stream: Receiver<Arc<HotShotEvent<TYPES>>>,
    sender: Sender<Arc<HotShotEvent<TYPES>>>,
) -> JoinHandle<()>
Expand description

Spawn the network response task to handle incoming request for data from other nodes. It will shutdown when it gets HotshotEvent::Shutdown on the event_stream arg.