[rust-dev] Futures in Rust
vadimcn at gmail.com
Wed Jan 29 16:16:54 PST 2014
On Wed, Jan 29, 2014 at 3:55 PM, Kevin Ballard <kevin at sb.org> wrote:
> Any number of things.
> The use case here is an interactive protocol where writes go in both
> directions, and can be initiated in response to external events. The
> classic example is an IRC bot. The server can send a message at any time,
> so the IRC bot needs to be constantly reading, but writes back to the
> socket are not necessarily initiated directly in response to reads, they
> may be initiated due to asynchronous operations, or keyboard input at the
> terminal, or any number of other external stimuli.
In this case you'd be waiting on futures from those external events as
well. I am assuming that all of I/O would be future-ized, not just TCP
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev