pub(crate) fn new() -> io::Result<Self> {
        Ok(Self {
            poller: Arc::new(Poller::new()?),
            sockets: HashMap::with_hasher(Default::default()),
            bad_sockets: HashSet::with_hasher(Default::default()),
            events: Vec::new(),
            tick: 0,
        })
    }
/// Create a new socket selector.
Create a new socket selector.
Create a new socket selector .
pub(crate) fn new() -> io::Result<Self> {
        Ok(Self {
            poller: Arc::new(Poller::new()?),
            sockets: HashMap::with_hasher(Default::default()),
            bad_sockets: HashSet::with_hasher(Default::default()),
            events: Vec::new(),
            tick: 0,
        })
    }
pub ( crate ) fn new ( ) -> io :: Result < Self > { Ok ( Self { poller : Arc :: new ( Poller :: new ( ) ? ) , sockets : HashMap :: with_hasher ( Default :: default ( ) ) , bad_sockets : HashSet :: with_hasher ( Default :: default ( ) ) , events : Vec :: new ( ) , tick : 0 , } ) }
Create a new socket selector.
Create a new socket selector .