Skip to content

Extend examples to show more than just a single task::block_on #522

Closed
@brandonros

Description

@brandonros

Can somebody add an example of what this would look like:

const foo = async function () { return 1 }
const bar = async function () { return 1 }
const results = await Promise.all([foo(), bar()])

I think having just a single task::block_on in each example isn't very "real world"

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions