fn with_runtime(runtime: &Runtime, exchange_id: usize) -> Arc<Self> {
        runtime
            .local_store()
            .entry(ExchangeId::new(exchange_id))
            .or_insert_with(|| Arc::new(Exchange::new(runtime.num_workers())))
            .value()
            .clone()
    }
/// Create a new `Exchange` instance if an instance with the same id
/// (created by another thread) does not yet exist within `runtime`.
/// The number of peers will be set to `runtime.num_workers()`.
Create a new `Exchange` instance if an instance with the same id
(created by another thread) does not yet exist within `runtime`.
The number of peers will be set to `runtime.num_workers()`.
Create a new ` Exchange ` instance if an instance with the same id ( created by another thread ) does not yet exist within ` runtime ` . The number of peers will be set to ` runtime . num_workers () ` .
fn with_runtime(runtime: &Runtime, exchange_id: usize) -> Arc<Self> {
        runtime
            .local_store()
            .entry(ExchangeId::new(exchange_id))
            .or_insert_with(|| Arc::new(Exchange::new(runtime.num_workers())))
            .value()
            .clone()
    }
fn with_runtime ( runtime : & Runtime , exchange_id : usize ) -> Arc < Self > { runtime . local_store ( ) . entry ( ExchangeId :: new ( exchange_id ) ) . or_insert_with ( | | Arc :: new ( Exchange :: new ( runtime . num_workers ( ) ) ) ) . value ( ) . clone ( ) }
Create a new `Exchange` instance if an instance with the same id
(created by another thread) does not yet exist within `runtime`.
Create a new ` Exchange ` instance if an instance with the same id ( created by another thread ) does not yet exist within ` runtime ` .
runtime
&Runtime
exchange_id
usize