run

Function run 

Source
pub async fn run<L: ShardLogic>(
    shard: Shard<L>,
    wake: Arc<Notify>,
    mailbox: Receiver<ShardCommand>,
) -> Shard<L>
Expand description

Drive a shard until every handle to it is dropped.

Takes the driver halves produced by spawn_parts and gives the shard back, so a caller that wants to inspect or migrate it can.