Skip to content

The async* function yield should work well with await for. #121

@lrhn

Description

@lrhn

The async* function yield is specified to wait until the event has been delivered, giving the receiver time to pause or cancel in (immediate) response to receiving the event.

Implementations do not wait for the receiver. This makes it hard and inefficient to write async* functions that do not do too much work.
The implementations should follow the specification and make the user experience better.

Associated feature specification has more details.

Metadata

Metadata

Assignees

Labels

featureProposed language feature that solves one or more problems

Type

No type

Projects

Status

Spec complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions