Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some functions in future module to no_std#696

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
k-nasa wants to merge4 commits intoasync-rs:main
base:main
Choose a base branch
Loading
fromk-nasa:to_no_std_future_module

Conversation

k-nasa
Copy link
Member

@k-nasak-nasa commentedFeb 4, 2020
edited
Loading

Some functions in future module to no_std

@k-nasak-nasaforce-pushed theto_no_std_future_module branch froma7eaa87 to3883079CompareFebruary 4, 2020 10:05
@k-nasak-nasa marked this pull request as ready for reviewFebruary 4, 2020 10:06
@k-nasak-nasa assignedk-nasa and unassignedk-nasaFeb 5, 2020
@k-nasak-nasa requested a review fromyoshuawuytsMarch 3, 2020 14:20
@@ -23,15 +23,18 @@ use crate::task::{Context, Poll};
/// #
/// # })
/// ```
pubasyncfn poll_fn<F, T>(f: F) ->T
pub fn poll_fn<F, T>(f: F) ->PollFn<F>
Copy link
Contributor

@yoshuawuytsyoshuawuytsMar 6, 2020
edited
Loading

Choose a reason for hiding this comment

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

Hmm, I'm so-so about this change. Functions such asio::copy don't work on no-std either, but would be really useful to have as well. Having these functions beasync fn was a bit of a deliberate choice when designing async-std.

Withasync await for embedded rust steadily progressing, I wonder how needed this is. It seems as async/await continues to move beyond mvp status this will be much of a non-issue.

All in all I think it'd be okay to leave these methods as-is for now. Thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hm, the feature won't make the cut in 6 days, so it's at least 18 weeks out. Given that this is no user-visible change, I'd be fine with enabling embrio users to use this currently.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Since the interface seen from the user does not change, I think that it is OK to change this.


pub(crate)mod future;
mod ready;
Copy link
Contributor

Choose a reason for hiding this comment

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

I believeready should be able to work in no-std.

k-nasa reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@skadeskadeskade left review comments

@yoshuawuytsyoshuawuytsyoshuawuyts left review comments

@yjhmelodyyjhmelodyyjhmelody left review comments

@taiki-etaiki-etaiki-e left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@k-nasa@skade@yoshuawuyts@yjhmelody@taiki-e

[8]ページ先頭

©2009-2025 Movatter.jp