mnetship / ratsio

NATS & NATS Streaming Server client library for Rust
MIT License
50 stars 22 forks source link

futures 3.0 and Rust 1.39 #5

Closed dawid-nowak closed 4 years ago

dawid-nowak commented 4 years ago

I was wondering if you had any plans to refactor the code to start using futures ^0.3 and async/.await features.

mnetship commented 4 years ago

Yes, async/.await will be implemented by the end of Dec 2019

humb1t commented 4 years ago

Hi @mnetship, did you start migration? I'm trying to deal with actix+ratsio and it's quite a mess because both projects have different approach about working with tokio runtime. If you didn't, maybe I could help and prepare a PR with async/.await syntax?

humb1t commented 4 years ago

@dawid-nowak, @mnetship I started a migration in #9. Basic things already done, I'm working on Streams in src/net/connection_inner.rs right now. The biggest challenge is to rewrite loop_fn in clients and connection.

dawid-nowak commented 4 years ago

@dawid-nowak, @mnetship Fair play to you guys. If I can help with anything let me know.

ebkalderon commented 4 years ago

It looks like async/await is already available in master, albeit in an MVP state. Can this issue be closed?

dawid-nowak commented 4 years ago

awesome news !