Skip to content

Tokio integration #6

@little-dude

Description

@little-dude

Hi,

I'm trying to write an expect crate. The problem is, I want non-blocking IO on the master pty, so that I can implement timeouts. For now, I copy-pasted the TtyServer implementation and made the tokio integration: https://github.com/little-dude/expect-rs/blob/master/src/pty.rs.

Do you think this kind of stuff would be worth adding to tty-rs as a separte type, like AsyncTtyServer ?

Thanks for this crate, I learnt a lot just about ttys just by reading your code :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions