Skip to content

feat: runtime independent examples #21

New issue

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

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

Already on GitHub? # to your account

Merged
merged 5 commits into from
Jun 27, 2022
Merged

feat: runtime independent examples #21

merged 5 commits into from
Jun 27, 2022

Conversation

dignifiedquire
Copy link
Contributor

This removes the hard dependency on the runtime of async-std and adds examples of using tokio@0.2 and futures@0.3 runtimes.

Depends on

cc @jonhoo

@dignifiedquire dignifiedquire requested a review from link2xt June 22, 2022 22:46
dignifiedquire added a commit to chatmail/core that referenced this pull request Jun 22, 2022
dignifiedquire added a commit to chatmail/core that referenced this pull request Jun 23, 2022
Comment on lines 52 to 57
// TODO: get rid of this
let mut msgs = unsafe { std::pin::Pin::new_unchecked(&mut msgs) };

while let Some(msg) = msgs.next().await {
print!("{:?}", msg?);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noob question: whats the pin needed for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wasn't needed anymore :)

dignifiedquire added a commit to chatmail/core that referenced this pull request Jun 24, 2022
dignifiedquire added a commit to chatmail/core that referenced this pull request Jun 27, 2022
@dignifiedquire dignifiedquire merged commit 60ed0ff into master Jun 27, 2022
@dignifiedquire dignifiedquire deleted the runtimes branch June 27, 2022 11:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants