jonhoo / rust-imap

IMAP client library for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IDLE Builder

mordak opened this issue · comments

It might be nice to switch the Idle setup to a builder pattern so there is only one wait, ie.:

session.idle()
    .keepalive()
    .wait_while(|res| {
        // do something
    })

Originally posted by @mordak in #186 (comment)