Closed miaomiao1992 closed 8 months ago
if i let main thread wait for accept events,and i let other threads wait for read events just like main-sub reactor,what will happen?
If another thread attempts to wait() on the Poller, it will immediately return Ok(0). This is because platforms have inconsistent behavior for waiting on multiple threads.
wait()
Poller
Ok(0)
See also: https://github.com/smol-rs/polling/issues/69
if i let main thread wait for accept events,and i let other threads wait for read events just like main-sub reactor,what will happen?