pub fn task(driver: PeerDriver) -> (PeerTask, PeerHandle, PeerEvents)Expand description
Splits driver into its loop, its commands and its events (see the
module documentation). The loop waits at most 20 ms per step when nothing happens
(PeerTask::with_step_wait).