turtle
turtle copied to clipboard
Upgrade to tokio 1.0
This PR updates from tokio 0.2 to tokio 1.0.
To-do
Currently blocked on the following:
- [x]
UnboundedReceiver::blocking_recv- PR merged, needs to be released in the next release after 0.3.5 - [ ] Need
Handle::block_on(https://github.com/tokio-rs/tokio/issues/3096, PR https://github.com/tokio-rs/tokio/pull/3097) or something to replace it when we block on the process exiting inDropimplementations https://github.com/sunjay/turtle/blob/79635eab8a05b64ee8a2a3ec1265f65fb2fd124d/src/renderer_server/backend/multithreaded.rs#L91 https://github.com/sunjay/turtle/blob/79635eab8a05b64ee8a2a3ec1265f65fb2fd124d/src/renderer_server/backend/multiprocessed.rs#L146 - [ ] Need
UnboundedReceiver::try_recvto be added back - https://github.com/tokio-rs/tokio/issues/3350- Might be able to replace it with a sync channel (we only ever call
try_recvandsend, so nothing is blocking)
- Might be able to replace it with a sync channel (we only ever call
- [ ] Check to make sure we're using the latest version of tokio
- [ ] Resolve warnings, make sure tests still pass, and run a few examples to make sure everything still works