Skip to content

Introduce a standalone proposal for async let.#50

Open
jckarter wants to merge 1 commit intoDougGregor:structured-concurrencyfrom
jckarter:async-let
Open

Introduce a standalone proposal for async let.#50
jckarter wants to merge 1 commit intoDougGregor:structured-concurrencyfrom
jckarter:async-let

Conversation

@jckarter
Copy link
Copy Markdown
Collaborator

This is based off of https://github.com/DougGregor/swift-evolution/tree/structured-concurrency because the async let proposal depends on and has links to the main structured concurrency proposal.

through the parent scope. For instance, we can farm out three independent
subtasks of a dinner recipe to run concurrently like so:

```swift
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maybe add in the following for the full picture in the proposal...?

func chopVegetables() async throws -> [Vegetable] { ... }
func marinateMeat() async -> Meat { ... }
func preheatOven(temperature: Double) async throws -> Oven { ... }

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.

2 participants