Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc to upgarde from 0.5 to 0.6 #509

Closed
neodc opened this issue Dec 29, 2016 · 3 comments
Closed

Doc to upgarde from 0.5 to 0.6 #509

neodc opened this issue Dec 29, 2016 · 3 comments

Comments

@neodc
Copy link

neodc commented Dec 29, 2016

Hello,

I used the version 0.5 of mio and now see that a new version is out, I'd like to upgrade but I do not see any guide to do so.

I tried to just look at the doc to see what is the new way of doing but it seems really different (for example I don't see clearly how is now implemented the old "timeout" and "notify" method of the handler).

Is there any guide/article on how to upgrade to 0.6 ?

@alexcrichton
Copy link
Contributor

Currently there are no guides to upgrade to 0.6 that I'm aware of. The gist of the changes are:

  • The Handler type was "removed" (just deprecated for now)
  • Instead you should use Poll and Events
  • You construct the "loop" manually by calling Poll::poll in a loop
  • You dispatch events manually, essentially calling your own "ready callback"
  • Queues are available in mio::channel, but these are being phased out in favor of SetReadiness
  • Custom objects can be registered with a Poll through SetReadiness and Registration

@ehiggs
Copy link

ehiggs commented Feb 23, 2017

The docs still refer to EventLoop with some dead links.

@carllerche
Copy link
Member

I added this to the meta doc issue: #509.

I cleaned up a bunch of outdated docs. If there still are references to EventLoop, please open a separate issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants