Skip to content

New Fetch API #353

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

Closed
wants to merge 28 commits into from
Closed

New Fetch API #353

wants to merge 28 commits into from

Conversation

TatriX
Copy link
Member

@TatriX TatriX commented Feb 15, 2020

No description provided.

@TatriX TatriX force-pushed the feat/fetch branch 4 times, most recently from d49962d to 480537c Compare February 19, 2020 13:18
@TatriX TatriX changed the title WIP: Experimental async/await Fetch API New Fetch API Feb 19, 2020
//!
//! There is one entry point: [`fetch`][fetch] function.
//! It can accept both, String urls as well as [`Request`][request].
//! It can accept both, string urls as well as [`Request`][request].
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor grammar quibble, no comma needed after "... accept both, "


let token = "YWxhZGRpbjpvcGVuc2VzYW1l";
// Created outside async block because of lifetime reasons
// (we can't use reference to `model.from` in async
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// (we can't use reference to `model.from` in async
// (we can't use reference to `model.form` in async

let token = "YWxhZGRpbjpvcGVuc2VzYW1l";
// Created outside async block because of lifetime reasons
// (we can't use reference to `model.from` in async
// function).
Copy link
Member

Choose a reason for hiding this comment

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

Is it on the standalone line because of GitHub weird line breaks or Rust formatter?

@MartinKavik
Copy link
Member

Closing in favor of PR #402

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

Successfully merging this pull request may close these issues.

3 participants