dpc / mioco.pre-0.9

Scalable, coroutine-based, asynchronous IO handling library for Rust programming language. (aka MIO COroutines).
Mozilla Public License 2.0
457 stars 30 forks source link

`UnixListener` is not usable. #135

Closed SAPikachu closed 8 years ago

SAPikachu commented 8 years ago

UnixListener is currently defined as a newtype, instead of alias of MioAdapter, so we can't call accept() or try_accept() on it. Was this missed when introducing MioAdapter, or is there any reason implementing it like that?

dpc commented 8 years ago

I'm quite sure it's just my mistake. Feel free to submit a PR, or I'll fix it over the weekend. Sorry for that. :)

SAPikachu commented 8 years ago

Just submitted a PR. :)