Skip to content

Implementations of Future.then should be updated to use FutureOr #300

Closed
dart-archive/async
#27
@leafpetersen

Description

@leafpetersen

Classes that implement Future should change the signature ot .then to be

then(FutureOr<S> onValue(T x), {Function onError})

to ensure that inference will continue to work for calls to .then and to get better error checking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions