E40A Potential feature: get · Issue #9 · async-plus/async-plus · GitHub
[go: up one dir, main page]

Skip to content

Potential feature: get #9

@montaguegabe

Description

@montaguegabe

In Swift, Task has an overloaded get that is throwing iff Failure is Never.

In the same way, we should probably combine .asyncThrows and .async and .value and .result into a single overloaded function called .get the result would be async and/or throwing depending on the underlying implementation. Then if the async/throwing status of a chain changes, you don't have to change the name of the thing that accesses (one fewer thing to change).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0