Struct easyfibers::Poller
[−]
[src]
pub struct Poller;
Used to poll on sockets and timers. There can only be 1 poller per thread.
Methods
impl Poller
[src]
fn new(stack_size: Option<usize>) -> Result<Poller>
Start poller. This function does not block. stack_size will be rounded up to next power of two. If not set default value of context-rs will be used.
fn poll(&self, dur: Duration) -> bool
Execute socket poll, timers and check dns lookups. Will block for a maximum of dur or not at all if a socket is signalled. Returns true if something changed and runners should be executed.