Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to new nightly API #1268

Merged
merged 14 commits into from
Oct 1, 2018
Merged

Update to new nightly API #1268

merged 14 commits into from
Oct 1, 2018

Conversation

cramertj
Copy link
Member

TODO: decide what to do w/ compat, executor trait.

Where should the executor trait go? I know @carllerche at least prefers an executor trait that is generic on the type of future it accepts, so I don't think the exact API is totally decided. -util seems wrong, but I hesitate to add another crate for it (especially since futures-executor is the good name, and that's already taken).

Includes some changes from #1266 (thanks, @Kroisse!)

@Nemo157
Copy link
Member

Nemo157 commented Sep 25, 2018

@cramertj are you thinking to rename Spawn back to Executor? There's the existing https://crates.io/crates/futures-spawn crate for 0.1 for this abstraction, it even suggests that it may become part of futures-rs at some point.

@cramertj
Copy link
Member Author

cramertj commented Oct 1, 2018

@Nemo157 I've re-added it as Spawn and LocalSpawn here (inside futures-core).

@cramertj cramertj changed the title [WIP] Update to new nightly API Update to new nightly API Oct 1, 2018
Copy link
Member

@aturon aturon left a comment

Choose a reason for hiding this comment

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

LGTM

Cargo.toml Outdated
@@ -9,3 +9,6 @@ members = [
"futures-util",
"futures-test",
]

[patch.crates-io]
pin-utils = { git = "https://github.com/Kroisse/pin-utils.git", branch = "pin" }
Copy link
Member

Choose a reason for hiding this comment

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

Do we plan on publishing the needed changes here?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are actually already published-- I just have to update the path here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants